UNPKG

sheweny

Version:

The powerful framework for create discord bots

22 lines (21 loc) 1.62 kB
import type { SlashCommandData, ContextMenuMessageData, ContextMenuUserData, MessageData } from './interfaces'; import type { COMMANDS_MANAGER_STRATEGY, COMMAND_TYPE, INHIBITOR_TYPE } from '../constants/constants.js'; import type { ButtonsManager, CommandsManager, EventsManager, InhibitorsManager, ModalsManager, SelectMenusManager } from '../managers/index.js'; import type { Button, Command, Event, Inhibitor, SelectMenu, Modal } from '../structures'; import type { Message } from 'discord.js'; import type { Awaitable } from './utilityTypes'; /** **** UTIL ******/ export declare type CustomId = Array<string | RegExp>; export declare type Manager = ButtonsManager | CommandsManager | EventsManager | InhibitorsManager | ModalsManager | SelectMenusManager; export declare type CommandManagerRegisterStrategy = typeof COMMANDS_MANAGER_STRATEGY.set | typeof COMMANDS_MANAGER_STRATEGY.create; export declare type Structure = Button | Command | Event | Inhibitor | Modal | SelectMenu; /** * Commands types */ export declare type CommandData = SlashCommandData | ContextMenuUserData | ContextMenuMessageData | MessageData; export declare type MessageCommandPrefix = string | ((msg: Message) => Awaitable<string>); export declare type CommandType = typeof COMMAND_TYPE.cmdSlash | typeof COMMAND_TYPE.ctxMsg | typeof COMMAND_TYPE.ctxUser | typeof COMMAND_TYPE.cmdMsg; /** * Inhibitors types */ export declare type InhibitorType = typeof INHIBITOR_TYPE.message | typeof INHIBITOR_TYPE.appCommand | typeof INHIBITOR_TYPE.button | typeof INHIBITOR_TYPE.select | typeof INHIBITOR_TYPE.modal | typeof INHIBITOR_TYPE.all;