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.

23 lines (22 loc) 1.15 kB
import { Client, Collection, ChatInputCommandInteraction, ButtonInteraction, AnySelectMenuInteraction, ModalSubmitInteraction, CommandInteraction, ApplicationCommandType } from "discord.js"; import { ISlashCommandHandler } from "../handlers/commands/index"; import { BootstrapAppOptions, ISimplifyClient } from "../types/index"; export default class bootstrapApp extends Client implements ISimplifyClient { customOptions?: BootstrapAppOptions; slashCommands: Collection<string, ISlashCommandHandler<ApplicationCommandType>>; slashArray: any[]; commands?: { guilds?: string[]; }; constructor(options: BootstrapAppOptions); invokeInteraction(interactionName: string, interaction: CommandInteraction | ButtonInteraction | AnySelectMenuInteraction | ModalSubmitInteraction, params?: { [key: string]: string; }): Promise<any>; invokeCommand(commandName: string, interaction: ChatInputCommandInteraction): Promise<void>; reloadCommands(): Promise<void>; private loadAutoImportPaths; private startListening; private parsePattern; private getInteractionCallback; } export { bootstrapApp };