aboutsummaryrefslogtreecommitdiff
path: root/src/commands/index.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/commands/index.ts')
-rw-r--r--src/commands/index.ts10
1 files changed, 3 insertions, 7 deletions
diff --git a/src/commands/index.ts b/src/commands/index.ts
index 1cd927b..b9f5877 100644
--- a/src/commands/index.ts
+++ b/src/commands/index.ts
@@ -1,14 +1,10 @@
import {SlashCommandBuilder} from '@discordjs/builders';
import {ButtonInteraction, CommandInteraction} from 'discord.js';
-export default class Command {
- // TODO: remove
- name?: string;
- aliases?: string[];
- examples?: string[][];
- readonly slashCommand?: Partial<SlashCommandBuilder> & Pick<SlashCommandBuilder, 'toJSON'>;
+export default interface Command {
+ readonly slashCommand: Partial<SlashCommandBuilder> & Pick<SlashCommandBuilder, 'toJSON'>;
readonly handledButtonIds?: readonly string[];
readonly requiresVC?: boolean;
- executeFromInteraction?: (interaction: CommandInteraction) => Promise<void>;
+ execute: (interaction: CommandInteraction) => Promise<void>;
handleButtonInteraction?: (interaction: ButtonInteraction) => Promise<void>;
}