The event executed when creating the CommandHandler.
The event executed when a CommandHandlerError is created.
The event executed when the CommandHandler starts its launch.
The event executed when the CommandHandler has finished launching..
The event executed when loading a Command.
The event executed when loading an Event.
The client of the handler, null before launch function executed.
The commands registered by the CommandHandler.
The cooldowns mapped by ID and cooldown user.
A simple explication :
When a user executes a command with a cooldown, a new value is added.
[anyID]: {
[commandName]: {
executedAt: Date,
cooldown: [command cooldown]
}
}
So cooldowns are mapped by IDs (can be anything, user IDs recommended) then mapped by commands.
The event emitter for the CommandHandler.
The events registered by the EventHandler.
The interval of the cycling presences, undefined if you don't use it.
The version of the handler.
Creates a new CommandHandler, wrap up the last one.
Options for creating a new CommandHandler.
Execute the event you want from the listener throughout the CommandHandler.
Event names of the CommandHandler listener.
The event name.
The arguments to pass.
Find a command by name or alias.
The name or alias of the command.
undefined
.Returns the list of names and aliases of all commands, useful to find a command by name.
Get the prefix from the prefixes defined in CommandHandler.launch or null.
The message to get the prefix for.
Launches the CommandHandler, log in the client and load commands/events.
Options for launching the CommandHandler, see CreateCommandHandlerOptions.
Load a command from the directory & filename.
The path of the command folder.
The name of the command including the extension.
Load all the commands from a directory.
The path of the directory to load the commands from.
Load an event from the directory and filename.
The path of the event folder.
The name of the event including the extension.
Load all the events from a directory.
The path of the directory to load the events from.
Adds a listener for the {@link eventName} event.
Event names of the CommandHandler listener.
The event name.
The callback to execute.
Adds a one-time listener for the {@link eventName} event.
Event names of the CommandHandler listener.
The event name.
The callback to execute.
Unloads a command.
The command to unload.
Unloads an event.
The event to unload.
Add the defaults commands to your CommandHandler.
The options for the default commands.
Add the defaults events to your CommandHandler.
The options for the default events.
Generated using TypeDoc
The CommandHandler events.
EventEmitter.