A command dispatcher. This handles command fetching and execution.

Hierarchy

  • CommandDispatcher

Constructors

Properties

Methods

Constructors

Properties

The client that this command dispatcher will be used by.

Memberof

CommandDispatcher

registry: CommandRegistry

The command registry used by this command dispatcher.

Memberof

CommandDispatcher

Methods

  • Handles command fetching and execution for slash commands.

    Parameters

    • interaction: Interaction

      The interaction that triggered this handler.

    Returns Promise<void>

    Emits

    client#commandExecute

  • Handles command fetching and execution for message based commands (RegularCommand).

    Parameters

    • message: Message<boolean>

      The message that triggered this handler.

    Returns Promise<void>

    Emits

    client#commandExecute

Generated using TypeDoc