mirror of
https://github.com/warengroup/eximiabots-radiox.git
synced 2024-12-23 05:53:18 +00:00
Disabled removing commands when bot is going offline
This commit is contained in:
parent
38af503626
commit
7e3a83743d
@ -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){
|
||||||
|
Loading…
Reference in New Issue
Block a user