diff --git a/util/DiscordInteractionCommand.ts b/util/DiscordInteractionCommand.ts index 1a089c8..9c7f5c2 100644 --- a/util/DiscordInteractionCommand.ts +++ b/util/DiscordInteractionCommand.ts @@ -1,12 +1,20 @@ import { SlashCommandBuilder, ChatInputCommandInteraction } from "discord.js"; import { guildID } from "../config.json"; -export default abstract class DiscordInteractionCommand { +export interface DiscordInteractionCommandSkeleton { + GUILD_ID: string; + builder?: SlashCommandBuilder; + description: string; + execute: (interaction: ChatInputCommandInteraction) => Error | Promise; + name: string; +} + +export default abstract class DiscordInteractionCommand implements DiscordInteractionCommandSkeleton { public name: string; public description: string; public builder: SlashCommandBuilder; - protected GUILD_ID: string; + public GUILD_ID: string; protected constructor(name: string, description: string) { this.name = name;