Aethel Bot OSS repository! aethel.xyz
bot fun ai discord discord-bot aethel
at dev 789 B view raw
1import BotClient from '@/services/Client'; 2import { 3 ChatInputCommandInteraction, 4 ContextMenuCommandBuilder, 5 ContextMenuCommandInteraction, 6 ModalSubmitInteraction, 7 SlashCommandBuilder, 8 AutocompleteInteraction, 9} from 'discord.js'; 10 11export interface SlashCommandProps { 12 data: SlashCommandBuilder; 13 category?: string; 14 execute: (client: BotClient, interaction: ChatInputCommandInteraction) => Promise<void>; 15 autocomplete?: (client: BotClient, interaction: AutocompleteInteraction) => Promise<void>; 16} 17 18export interface RemindCommandProps extends SlashCommandProps { 19 contextMenu: ContextMenuCommandBuilder; 20 contextMenuExecute: (c: BotClient, i: ContextMenuCommandInteraction) => Promise<void>; 21 handleModal: (c: BotClient, i: ModalSubmitInteraction) => Promise<void>; 22}