Updated commands.js

This commit is contained in:
Christer Warén 2021-09-05 04:41:53 +03:00
parent 7e3a83743d
commit 11573a5113

View File

@ -44,16 +44,17 @@ 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: commands }, { body: commands }
); );
client.funcs.logger('Slash Commands', 'Guild Applications Successful' + "\n" + guild.id + " / " + guild.name);
} catch (DiscordAPIError) { } catch (DiscordAPIError) {
client.funcs.logger('Slash Commands', 'Guild Applications Failed' + "\n" + guild.id + " / " + guild.name);
} }
}); });
} else { } else {
await rest.put( await rest.put(
Routes.applicationCommands(client.user.id), Routes.applicationCommands(client.user.id),
{ body: commands }, { body: commands }
); );
} }