This class handles the commands!

Constructors

Properties

cmds: any
mhandler: Handler

Methods

  • This function sets the default error message if a command is guild only!

    Parameters

    Returns any

    The function returns the error reply!

  • This function handles the command interaction event!

    Parameters

    • interaction: CommandInteraction<CacheType>

    Returns any

  • This function registers a single command!

    Parameters

    • CmdClass: any

    Returns void

    ...

    handler.commandHandler.registerCommand(CommandClass);
  • This function registers multiple command!

    Parameters

    • CmdClassArray: any[]

    Returns void