Bot: Clear global commands when running as dev

This commit is contained in:
Minz authored and Minz committed 2023-08-07 17:34:19 +02:00
1 parent 643c027ce8
commit de37b9d348
1 file changed
+1
+1
View File
@@ -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");
}