mirror of
https://github.com/warengroup/eximiabots-radiox.git
synced 2024-12-23 01:53:17 +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),
|
||||
{ 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");
|
||||
|
Loading…
Reference in New Issue
Block a user