Disabled removing commands when bot is going offline

This commit is contained in:
Christer Warén 2021-09-05 04:36:32 +03:00
parent 38af503626
commit 7e3a83743d

View File

@ -35,7 +35,7 @@ module.exports = {
radio = currentRadios.next(); radio = currentRadios.next();
} }
const rest = new REST({ version: '9' }).setToken(token); /*const rest = new REST({ version: '9' }).setToken(token);
if(version.includes("-dev")){ if(version.includes("-dev")){
await rest.put( await rest.put(
Routes.applicationCommands(client.user.id), Routes.applicationCommands(client.user.id),
@ -47,13 +47,13 @@ module.exports = {
try { try {
await rest.put( await rest.put(
Routes.applicationGuildCommands(client.user.id, guild.id), Routes.applicationGuildCommands(client.user.id, guild.id),
{ body: [] }, { body: [] }
); );
} catch (DiscordAPIError) { } catch (DiscordAPIError) {
} }
}); });
} }*/
setInterval(() => { setInterval(() => {
if(radio.done){ if(radio.done){