From f17823374904874b799027cf69b0f4acde7fc790 Mon Sep 17 00:00:00 2001 From: KieranRobson Date: Mon, 27 Jun 2022 11:59:30 +0100 Subject: [PATCH] Fixed Dupe Slash Commands --- handler/index.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/handler/index.js b/handler/index.js index 7bca2f6..b267941 100644 --- a/handler/index.js +++ b/handler/index.js @@ -40,8 +40,11 @@ module.exports = async (client) => { arrayOfSlashCommands.push(file); }); client.on("ready", async () => { - const guild = client.guilds.cache.get("969944638498680872"); - guild.commands.set([]); + const guild1 = client.guilds.cache.get("969944638498680872"); + guild1.commands.set([]); + + const guild2 = client.guilds.cache.get("427865794467069962"); + guild2.commands.set([]); // Register for all the guilds the bot is in await client.application.commands.set(arrayOfSlashCommands);