mirror of
https://github.com/warengroup/eximiabots-radiox.git
synced 2024-11-14 03:50:18 +00:00
Update commands.js
This commit is contained in:
parent
3f3aab4c22
commit
be97b271cf
@ -60,6 +60,17 @@ module.exports = {
|
|||||||
Routes.applicationCommands(client.user.id),
|
Routes.applicationCommands(client.user.id),
|
||||||
{ body: commands }
|
{ body: commands }
|
||||||
);
|
);
|
||||||
|
|
||||||
|
let guilds = await client.guilds.fetch();
|
||||||
|
guilds.forEach(async guild => {
|
||||||
|
try {
|
||||||
|
await rest.put(
|
||||||
|
Routes.applicationGuildCommands(client.user.id, guild.id),
|
||||||
|
{ body: [] }
|
||||||
|
);
|
||||||
|
} catch (DiscordAPIError) {
|
||||||
|
}
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
client.funcs.logger('Slash Commands', 'Successfully reloaded application (/) commands.' + "\n");
|
client.funcs.logger('Slash Commands', 'Successfully reloaded application (/) commands.' + "\n");
|
||||||
|
Loading…
Reference in New Issue
Block a user