Class AresEventHandler<Event>

Type Parameters

  • Event extends keyof ClientEvents = keyof ClientEvents

Constructors

Properties

Constructors

  • Type Parameters

    • Event extends keyof ClientEvents = keyof ClientEvents

    Parameters

    • name: Event

      Represents the handler's identifier.

    • isOnce: boolean

      Represents wether the handler will execute once or not.

    • isDisabled: boolean

      Represents whether the handler is meant to be run in production.

    • execute: ((...args) => Awaitable<void>)

      Represents the function to execute when the event is triggered.

        • (...args): Awaitable<void>
        • Represents the function to execute when the event is triggered.

          Parameters

          • Rest ...args: ClientEvents[Event]

          Returns Awaitable<void>

    Returns AresEventHandler<Event>

Properties

name: Event

Represents the handler's identifier.

isOnce: boolean

Represents wether the handler will execute once or not.

isDisabled: boolean

Represents whether the handler is meant to be run in production.

execute: ((...args) => Awaitable<void>)

Type declaration

    • (...args): Awaitable<void>
    • Represents the function to execute when the event is triggered.

      Parameters

      • Rest ...args: ClientEvents[Event]

      Returns Awaitable<void>

Generated using TypeDoc