From 6335a4617f57fa11a3213ad2d48e631849ec1242 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christer=20War=C3=A9n?= Date: Mon, 6 Sep 2021 01:19:09 +0300 Subject: [PATCH] Show errors except DiscordAPIError[50001] in commands.js --- src/client/commands.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/client/commands.js b/src/client/commands.js index a1a8a14..0d737d5 100644 --- a/src/client/commands.js +++ b/src/client/commands.js @@ -20,6 +20,7 @@ module.exports = { if(command.options) { command.options.forEach(function(option) { if(option.type == "STRING") option.type = 3; + if(option.type == "NUMBER") option.type = 10; command.data.options.push(option); }); } @@ -49,6 +50,7 @@ module.exports = { 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); + if(DiscordAPIError.name != "DiscordAPIError[50001]") console.error(DiscordAPIError.message + "\n\n"); } }); } else {