From 1b09e466e29c1606aedf1439ce3fd4546ea4e323 Mon Sep 17 00:00:00 2001 From: Benjamin Kraft Date: Thu, 13 Jun 2024 00:15:11 +0200 Subject: [PATCH] only one guild --- src/bot.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/bot.ts b/src/bot.ts index 6f13786..a547372 100644 --- a/src/bot.ts +++ b/src/bot.ts @@ -24,7 +24,8 @@ export class UEMEloBot extends Client { if (!interaction.isChatInputCommand()) return; - // TODO only continue to uem server + if (interaction.guildId !== process.env["GUILD_ID"]) + return; let commandName = interaction.commandName; let command = this.commands.get(commandName) as Command;