aboutsummaryrefslogtreecommitdiff
path: root/src/commands/index.ts
blob: b9f5877de43dd6f5228402a67c15a1887f000e5c (plain)
1
2
3
4
5
6
7
8
9
10
import {SlashCommandBuilder} from '@discordjs/builders';
import {ButtonInteraction, CommandInteraction} from 'discord.js';

export default interface Command {
  readonly slashCommand: Partial<SlashCommandBuilder> & Pick<SlashCommandBuilder, 'toJSON'>;
  readonly handledButtonIds?: readonly string[];
  readonly requiresVC?: boolean;
  execute: (interaction: CommandInteraction) => Promise<void>;
  handleButtonInteraction?: (interaction: ButtonInteraction) => Promise<void>;
}