From de37b9d348e8cccda931139b6d8dce794d25e4e6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20Gro=C3=9F?= Date: Mon, 31 Jul 2023 17:18:22 +0200 Subject: [PATCH] Bot: Clear global commands when running as dev --- events/ready.js | 1 + 1 file changed, 1 insertion(+) diff --git a/events/ready.js b/events/ready.js index 2984d9a..f7f01b1 100644 --- a/events/ready.js +++ b/events/ready.js @@ -21,6 +21,7 @@ module.exports = { await rest.put(Routes.applicationGuildCommands(CLIENT_ID, process.env.GUILD_ID), {body: [] }); //Clear Guild commands on prod console.log("Global commands registered"); } else { + await rest.put(Routes.applicationCommands(CLIENT_ID), {body: [] }); //Clear global commands on dev await rest.put(Routes.applicationGuildCommands(CLIENT_ID, process.env.GUILD_ID), {body: commands }); console.log("Local commands registered"); }