📣 Command Event Bus
The ScheduleEventBus
emits command related events. It's stored by a CommandManager
, and you can get it via
CommandManager#getEventBus()
.
Currently, these events are:
CommandAdd
- A top level command was added. Passes the addedTopLevelCommand
.CommandRemove
- A top level command was removed. Passes the removedTopLevelCommand
.CommandUpdate
- A top level command was updated. Passes the updatedTopLevelCommand
.CommandRun
- An executable command was run. Passes theExecutableCommand
, theCommandExecutableInteraction
and theCommandExecutionMeta
.CommandAutocomplete
- An executable command's autocompletion was called. Passes theExecutableCommand
, theCommandAutocompleteInteraction
, theCommandExecutionMeta
and the answeredApplicationCommandOptionChoiceData[]
.
You can get these events from the CommandEventEnum
enum on @core
.