oopscord.js
    Preparing search index...

    Function EventModule

    • Class decorator that marks a class as an event module.

      The decorator is intended to be used by the module loader to discover and register event listener classes associated with a module. It stores configuration on the class (via metadata) so runtime code can act on it.

      Parameters

      Returns ClassDecorator

      EventModule({ listeners: [MyListener, OtherListener] })
      class MyModule {}