Class ModuleCommandHandler

Hierarchy

  • ModuleBaseHandler
    • ModuleCommandHandler

Constructors

Properties

data: SlashCommandBuilder
execute: GenericCommandExecuteFunction
type: string = ...

Methods

  • Checks if this handler is an unconfigured handler.

    Returns this is ModuleBaseHandler

    Whether this handler is an unconfigured handler.

  • Sets the SlashCommandBuilder data for this handler.

    Parameters

    • data: SlashCommandBuilder

      The SlashCommandBuilder data.

    Returns this

    This instance for chaining.

  • Sets the execute function for this handler.

    Parameters

    • execute: GenericCommandExecuteFunction

      The execute function.

    Returns this

    This instance for chaining.

  • Validates the handler, ensuring the SlashCommandBuilder data and execute function are set.

    Returns boolean

    Whether the handler is valid.