Interface ClientEventListenerOptions<K>

interface ClientEventListenerOptions<K> {
    event: K;
    once?: boolean;
    run: ((client, ...args) => void);
}

Type Parameters

  • K extends keyof ClientEvents

Implemented by

Properties

Properties

event: K

The event to listen for

once?: boolean

Should we only listen for this event once?

run: ((client, ...args) => void)

The function to run when the event is emitted

Type declaration

    • (client, ...args): void
    • Parameters

      • client: Client<true>
      • Rest ...args: ClientEvents[K]

      Returns void