meocord
Version:
Decorator-based Discord bot framework built on discord.js. Brings NestJS-style controllers, dependency injection, guards, and testing utilities to bot development — with a full CLI and TypeScript-first design.
32 lines (30 loc) • 1.27 kB
JavaScript
/**
* MeoCord Framework
* Copyright (c) 2025 Ukasyah Rahmatullah Zada
* SPDX-License-Identifier: MIT
*/ var ControllerType = /*#__PURE__*/ function(ControllerType) {
ControllerType["BUTTON"] = "button";
ControllerType["MODAL_SUBMIT"] = "modal-submit";
ControllerType["SELECT_MENU"] = "select-menu";
ControllerType["REACTION"] = "reaction";
ControllerType["MESSAGE"] = "message";
ControllerType["SLASH"] = "slash";
ControllerType["CONTEXT_MENU"] = "context-menu";
return ControllerType;
}({});
var CommandType = /*#__PURE__*/ function(CommandType) {
CommandType["SLASH"] = "SLASH";
CommandType["BUTTON"] = "BUTTON";
CommandType["CONTEXT_MENU"] = "CONTEXT_MENU";
CommandType["SELECT_MENU"] = "SELECT_MENU";
CommandType["MODAL_SUBMIT"] = "MODAL_SUBMIT";
return CommandType;
}({});
/**
* Enum representing actions that can be performed on a message reaction.
*/ var ReactionHandlerAction = /*#__PURE__*/ function(ReactionHandlerAction) {
/** Reaction added to a message. */ ReactionHandlerAction["ADD"] = "ADD";
/** Reaction removed from a message. */ ReactionHandlerAction["REMOVE"] = "REMOVE";
return ReactionHandlerAction;
}({});
export { CommandType, ControllerType, ReactionHandlerAction };