From c72c7f9023ea798b3d05c061fc87a2f1df374d64 Mon Sep 17 00:00:00 2001 From: "Jonny_Bro (Nikita)" Date: Mon, 6 Nov 2023 18:19:48 +0500 Subject: [PATCH] ?????? --- events/CommandHandler.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/events/CommandHandler.js b/events/CommandHandler.js index 7c1329d9..9669a51a 100644 --- a/events/CommandHandler.js +++ b/events/CommandHandler.js @@ -15,6 +15,8 @@ class CommandHandler extends BaseEvent { * @param {import("discord.js").BaseInteraction} interaction */ async execute(client, interaction) { + if (interaction.guildId !== "1039187019957555252") return interaction.error({ content: "IAT Only", ephemeral: true }); + const command = client.commands.get(interaction.commandName); const data = []; @@ -33,7 +35,6 @@ class CommandHandler extends BaseEvent { if (interaction.isButton() && interaction.customId === "quote_delete" && interaction.message.deletable) return interaction.message.delete(); if (interaction.type !== InteractionType.ApplicationCommand && !interaction.isCommand()) return; - if (!interaction.guildId === "1039187019957555252") return interaction.error({ content: "IAT Only", ephemeral: true }); if (command.ownerOnly && interaction.user.id !== client.config.owner.id) return interaction.error("misc:OWNER_ONLY", null, { ephemeral: true }); if (!userData.achievements.firstCommand.achieved) {