From 39f34d45eec26f8959b247e6353642fffa197d70 Mon Sep 17 00:00:00 2001 From: "Jonny_Bro (Nikita)" Date: Mon, 6 Nov 2023 18:18:16 +0500 Subject: [PATCH] remove SC check --- events/CommandHandler.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/events/CommandHandler.js b/events/CommandHandler.js index 43ac6b89..7c1329d9 100644 --- a/events/CommandHandler.js +++ b/events/CommandHandler.js @@ -33,10 +33,8 @@ 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 (command.ownerOnly && interaction.user.id !== client.config.owner.id) return interaction.error("misc:OWNER_ONLY", null, { ephemeral: true }); - if (!interaction.guildId === "1039187019957555252") return interaction.error({ content: "IAT Only", ephemeral: true }); - if (!interaction.guildId === "600970971410857996") return interaction.error({ content: "SC 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) { const args = {