From a8ec9fe1b8e25af4e1faa6548ee74bfa0643831f Mon Sep 17 00:00:00 2001 From: Andrew Lee Date: Tue, 5 Jul 2022 18:16:06 -0400 Subject: The start of scrapping the control panel feature --- bot.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'bot.js') diff --git a/bot.js b/bot.js index 476138d..78b9308 100644 --- a/bot.js +++ b/bot.js @@ -89,12 +89,12 @@ bot.on('interactionCreate', async interaction => { try { await command.execute(interaction, bot); - } catch (error) { - console.error(error); - if (error == null) { + } catch (e) { + console.error(e); + if (e == null) { await interaction.reply({ content: 'There was an error while executing this command!', ephemeral: true }); } else { - await interaction.reply({ content: `There was an error while executing this command! Share this to the bot owner!\n\nDetails:\`\`\`${error}\`\`\``, ephemeral: true }); + await interaction.reply({ content: `There was an error while executing this command! Share this to the bot owner!\n\nDetails:\`\`\`${e}\`\`\``, ephemeral: true }); } } }); -- cgit v1.2.3