From 7e3a83743de2889accdef301c6915fc8f92c0769 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christer=20War=C3=A9n?= Date: Sun, 5 Sep 2021 04:36:32 +0300 Subject: [PATCH] Disabled removing commands when bot is going offline --- src/client/events/SIGINT.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/client/events/SIGINT.js b/src/client/events/SIGINT.js index 59495c7..52ed167 100644 --- a/src/client/events/SIGINT.js +++ b/src/client/events/SIGINT.js @@ -35,7 +35,7 @@ module.exports = { radio = currentRadios.next(); } - const rest = new REST({ version: '9' }).setToken(token); + /*const rest = new REST({ version: '9' }).setToken(token); if(version.includes("-dev")){ await rest.put( Routes.applicationCommands(client.user.id), @@ -47,13 +47,13 @@ module.exports = { try { await rest.put( Routes.applicationGuildCommands(client.user.id, guild.id), - { body: [] }, + { body: [] } ); } catch (DiscordAPIError) { } }); - } + }*/ setInterval(() => { if(radio.done){