The bot's prefix
Bot's prefix
Show command logging
This should be attached to the "messageCreate" event
discord's Message object
Register a singular command
The name of the command
The subclass of Command
Register error handler that was thrown inside Command#exec or Command#execute. If command error handler is registered, all errors thrown inside Command#execute will not be logged.
Function to be executed when error is thrown
Register handler for missing permission. By default, the error will be ignored.
Function to be executed when permission is missing.
Register handler for command not found error. By default, the error will be ignored.
Function to be executed when command not found error occurs
Register handler for command is on throttle. By default, the command will continue be blocked without any message.
Function to be executed when command is on throttle
Register commands from the whole directory. All command files should default export the Command class.
Directory where all the command files reside.
Generated using TypeDoc
CommandManager stores all your commands