This object will be temporarily used to store the aliases of commands
This final list will be used to call all commands with their names and aliases
A list of references to command classes exported by index.ts in the commands directory
This object will be temporarily used to store the names of commands, as opposed to aliases
This function takes care of setting up the actual lists of command names and aliases The function instantiates all Classes found in the commandList property one by one to return their properties
Promise - returns true when all lists have been created, returns false if an error occurs
Returns the list of commands and aliases, mostly for the Help command
object - the list of commands and aliases
A function to handle errors a command might return
the command object
A separate function to handle warnings a command might emit
the command object
A simple function to register all command names and aliases, unfortunately this function has to be called after
boolean - true if successful, false if an error occurs
Registers Command Classes with their aliases and checks for duplicates If an alias already exists as a command name it will not be added If an alias has been registered before it will not be registered
Registers a Command Class by it's name property
This wrapper function will be called to run the actual command after a prefix has been detected This handles both the calling of the command, returning it's reply in chat, and handling it's errors
the name of the command to be called
the discordjs Message object of the message in which the command was called
Generated using TypeDoc
The Commander singleton handles the calling of and treatment of call command objects, nominally only one of these should exist at any given moment.