From 5cbb6ad445366b6f72b9bfbdb9dfa85120fcdff5 Mon Sep 17 00:00:00 2001 From: ChrisChrome Date: Sat, 25 Jan 2025 12:37:33 -0700 Subject: [PATCH] Remove guild-command removal --- index.js | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/index.js b/index.js index c2aee04..16ddbec 100644 --- a/index.js +++ b/index.js @@ -69,16 +69,16 @@ client.on('ready', async () => { log.error(error) }); - // Clear guild commands - log.info("Clearing guild commands...") - const guilds = client.guilds.cache.map(guild => guild.id); - for (const guild of guilds) { - rest.put(Discord.Routes.applicationGuildCommands(client.user.id, guild), { body: [] }).then(() => { - log.success(`Cleared commands for guild ${guild}`) - }).catch((error) => { - log.error(error) - }); - } + // // Clear guild commands + // log.info("Clearing guild commands...") + // const guilds = client.guilds.cache.map(guild => guild.id); + // for (const guild of guilds) { + // rest.put(Discord.Routes.applicationGuildCommands(client.user.id, guild), { body: [] }).then(() => { + // log.success(`Cleared commands for guild ${guild}`) + // }).catch((error) => { + // log.error(error) + // }); + // } } catch (error) { log.error(error)