Adds commands and registers them on Discord, if the bot has started.
Autocompletes a command using the CommandExecutor.
A Promise that resolves to true if the autocompletion is successful.
Deploys the commands on Discord, if that wasn't already done on the start phase.
Edits commands on Discord. Requires the bot to have started.
Executes a command using the CommandExecutor.
Optionalmeta: MetadataA Promise that resolves to true if the command is executed successfully.
Returns the CommandCustomIdCodec for this manager.
Returns the CommandDeployer for this manager.
Returns the EventBus for this manager.
Returns the CommandExecutor for this manager.
Returns the MetadataFactory for creating or populating Metadatas for command executions.
Returns the CommandRepository for this manager.
Returns the CommandResolver for this manager.
Returns the CommandSubscriptionsContainer for this manager.
Called when the bot is started.
Called when the bot is stopped.
Removes a command and unregisters it from Discord, if the bot has started.
Sets commands on Discord, or the pending ones if the bot hasn't started.
Sets the CommandDeployer for this manager.
Sets the EventBus for this manager. This subscribes all the current subscribers to the new bus.
Sets the CommandRepository for this manager.
Sets the CommandSubscriptionsContainer for this manager. This unsubscribes the container's previous subscribers from the bus.
Subscribes a list of event subscribers to the manager's bus.
Alias of:
const managerBus = commandManager.getEventBus();
await managerBus.subscribe(subscriber);
An object that holds methods for interacting with the bot's commands.