CommandLoader

new CommandLoader(bot: Bot)

Handles loading all commands from the given Bot's commandsDir
Parameters:
Name Type Description
bot
Bot
Bot instance

Methods

.loadCommands()

Load or reload all commands from the base commands directory and the user-specified Bot#commandsDir directory and stores them in the Bot's CommandRegistry instance (Bot#commands)

.reloadCommand(nameOrAlias: string) → boolean

Reload the given command in the Bot's CommandRegistry (Bot#commands)
Parameters:
Name Type Description
nameOrAlias
string
Command#name or Command#aliases alias
Returns:
boolean