UNPKG

@ayanaware/bentocord

Version:

Bentocord is a Bento plugin designed to rapidly build fully functional Discord Bots.

38 lines 1.37 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.CommandManagerEvent = exports.NON_ERROR_HALT = void 0; /** * Used to "bubble up" events as a Command executes, when it isn't really an "error" */ exports.NON_ERROR_HALT = '__NON_ERROR_HALT__'; var CommandManagerEvent; (function (CommandManagerEvent) { /** * Emitted when a command is registered. * @param command The command that was registered. */ CommandManagerEvent["COMMAND_ADD"] = "commandAdd"; /** * Emitted when a command is unregistered. * @param command The command that was unregistered. */ CommandManagerEvent["COMMAND_REMOVE"] = "commandRemove"; /** * Fired when a command is successfully executed * @param command Command * @param context AnyCommandContext * @param options Options * @param mili Miliseconds */ CommandManagerEvent["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 */ CommandManagerEvent["COMMAND_FAILURE"] = "commandFailure"; })(CommandManagerEvent = exports.CommandManagerEvent || (exports.CommandManagerEvent = {})); //# sourceMappingURL=CommandManager.js.map