Type Alias ClientEventData<Key>

ClientEventData<Key>: {
    module: "event";
    name: Key;
    once?: boolean;
}

Represents the data structure for a client event.

Type Parameters

  • Key extends keyof ClientEvents

Type declaration

  • module: "event"
    • The module type, identifying this as an event module.
  • name: Key
    • The name of the event to listen for.
  • Optionalonce?: boolean
    • Indicates whether the event should only be handled once.