mirror of
https://github.com/BluemediaDev/muse.git
synced 2025-04-17 20:13:57 +02:00
11 lines
743 B
TypeScript
11 lines
743 B
TypeScript
import {SlashCommandBuilder, SlashCommandSubcommandsOnlyBuilder} from '@discordjs/builders';
|
|
import {AutocompleteInteraction, ButtonInteraction, ChatInputCommandInteraction} from 'discord.js';
|
|
|
|
export default interface Command {
|
|
readonly slashCommand: Partial<SlashCommandBuilder | SlashCommandSubcommandsOnlyBuilder> & Pick<SlashCommandBuilder, 'toJSON'>;
|
|
readonly handledButtonIds?: readonly string[];
|
|
readonly requiresVC?: boolean | ((interaction: ChatInputCommandInteraction) => boolean);
|
|
execute: (interaction: ChatInputCommandInteraction) => Promise<void>;
|
|
handleButtonInteraction?: (interaction: ButtonInteraction) => Promise<void>;
|
|
handleAutocompleteInteraction?: (interaction: AutocompleteInteraction) => Promise<void>;
|
|
}
|