UNPKG

simplify-cord

Version:

SimplifyCord is an unofficial extension of the 'discord.js' library. Our extension aims to simplify the development of Discord bots, promoting cleaner code and easier maintenance.

21 lines (20 loc) 812 B
import { ClientOptions, GatewayIntentBits, CommandInteraction, ButtonInteraction, AnySelectMenuInteraction, ModalSubmitInteraction } from "discord.js"; export interface BootstrapAppOptions extends Partial<ClientOptions> { token: string; intents?: GatewayIntentBits[]; autoImport?: string[]; commands?: { guilds?: string[]; }; loadLogs?: boolean; } export interface ISimplifyClient { invokeInteraction(interactionName: string, interaction: CommandInteraction | ButtonInteraction | AnySelectMenuInteraction | ModalSubmitInteraction, params: { [key: string]: string; }): Promise<any>; invokeCommand(commandName: string, interaction: CommandInteraction): Promise<void>; customOptions?: BootstrapAppOptions; commands?: { guilds?: string[]; }; }