Class: CommandManager

CommandManager

Manages the commands.

Constructor

new CommandManager()

Instantiates a new command manager.
Source:

Members

plain

Registered commands including aliases
Source:

registered

Registered commands
Source:

Methods

getPrefix() → {Promise.<string>}

Gets the current prefix.
Source:
Returns:
Type
Promise.<string>

processMessage()

Processes a message.
Source:

register() → {BotCommand|Array.<BotCommand>}

Registers command(s). First parameter can be either a name, or a {BotCommand} instance or array. Second parameter can be an object containg settings, or the handler function. Third parameter is the handler function when settings are the second. If a command with the same name exists, it will be overwritten.
Source:
Returns:
The registered command instance(s).
Type
BotCommand | Array.<BotCommand>

unregister()

Unregisters command(s) First parameter can be either a name, a {BotCommand} instance or an array of both.
Source: