From c722b21e2b40e6a5133293d29501ac4262bc277c Mon Sep 17 00:00:00 2001 From: KieranRobson Date: Mon, 27 Jun 2022 09:51:53 +0100 Subject: [PATCH] Enable Slash Commands in All Servers --- handler/index.js | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/handler/index.js b/handler/index.js index 63d3102..1a37cf1 100644 --- a/handler/index.js +++ b/handler/index.js @@ -40,12 +40,6 @@ module.exports = async (client) => { arrayOfSlashCommands.push(file); }); client.on("ready", async () => { - // Register for a single guild - await client.guilds.cache - .get("427865794467069962") - .commands.set(arrayOfSlashCommands); - - // Register for all the guilds the bot is in - // await client.application.commands.set(arrayOfSlashCommands); + await client.application.commands.set(arrayOfSlashCommands); }); };