From 11573a5113caa803258fcd2727dd048993e7aa13 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christer=20War=C3=A9n?= Date: Sun, 5 Sep 2021 04:41:53 +0300 Subject: [PATCH] Updated commands.js --- src/client/commands.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/client/commands.js b/src/client/commands.js index 078a8ee..a1a8a14 100644 --- a/src/client/commands.js +++ b/src/client/commands.js @@ -44,16 +44,17 @@ module.exports = { try { await rest.put( 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) { - + client.funcs.logger('Slash Commands', 'Guild Applications – Failed' + "\n" + guild.id + " / " + guild.name); } }); } else { await rest.put( Routes.applicationCommands(client.user.id), - { body: commands }, + { body: commands } ); }