aboutsummaryrefslogtreecommitdiff
path: root/bot.js
diff options
context:
space:
mode:
Diffstat (limited to 'bot.js')
-rw-r--r--bot.js8
1 files changed, 4 insertions, 4 deletions
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 });
}
}
});