diff --git a/util/DiscordInteractionCommand.ts b/util/DiscordInteractionCommand.ts index c9b2e84..1a089c8 100644 --- a/util/DiscordInteractionCommand.ts +++ b/util/DiscordInteractionCommand.ts @@ -1,10 +1,13 @@ import { SlashCommandBuilder, ChatInputCommandInteraction } from "discord.js"; +import { guildID } from "../config.json"; export default abstract class DiscordInteractionCommand { public name: string; public description: string; public builder: SlashCommandBuilder; + protected GUILD_ID: string; + protected constructor(name: string, description: string) { this.name = name; this.description = description; @@ -12,7 +15,9 @@ export default abstract class DiscordInteractionCommand { this.builder.setName(this.name); this.builder.setDescription(this.description); + + this.GUILD_ID = guildID; } - public abstract execute(interaction: ChatInputCommandInteraction): Error | Promise; + public abstract execute(interaction: ChatInputCommandInteraction): Error | Promise; }