@ayanaware/bentocord
Version:
Bentocord is a Bento plugin designed to rapidly build fully functional Discord Bots.
34 lines (33 loc) • 999 B
TypeScript
/**
* Used to "bubble up" events as a Command executes, when it isn't really an "error"
*/
export declare const NON_ERROR_HALT = "__NON_ERROR_HALT__";
export declare enum CommandManagerEvent {
/**
* Emitted when a command is registered.
* @param command The command that was registered.
*/
COMMAND_ADD = "commandAdd",
/**
* Emitted when a command is unregistered.
* @param command The command that was unregistered.
*/
COMMAND_REMOVE = "commandRemove",
/**
* Fired when a command is successfully executed
* @param command Command
* @param context AnyCommandContext
* @param options Options
* @param mili Miliseconds
*/
COMMAND_SUCCESS = "commandSuccess",
/**
* Fired when a command throws an error
* @param error Error
* @param command Command
* @param context AnyCommandContext
* @param options Options
* @param mili Miliseconds
*/
COMMAND_FAILURE = "commandFailure"
}