Sparky
    Preparing search index...

    Interface for an event.

    interface IEvent {
        callback: (client: Client, ...args: any[]) => Promise<void>;
        emitter: Emitter;
        event: string;
    }
    Index

    Properties

    callback: (client: Client, ...args: any[]) => Promise<void>

    Event callback.

    Type Declaration

      • (client: Client, ...args: any[]): Promise<void>
      • Parameters

        • client: Client

          The Discord client.

        • ...args: any[]

          The arguments passed to the event.

        Returns Promise<void>

        A promise that resolves when the event is done executing.

    emitter: Emitter

    The emitter of the event.

    event: string

    The event name should correspond to a valid event name of the corresponding emitter, otherwise it won't work.