aboutsummaryrefslogtreecommitdiff
path: root/bot.js
diff options
context:
space:
mode:
authorAndrew Lee <alee14498@protonmail.com>2022-07-05 18:16:06 -0400
committerAndrew Lee <alee14498@protonmail.com>2022-07-05 18:16:06 -0400
commita8ec9fe1b8e25af4e1faa6548ee74bfa0643831f (patch)
tree70960f5366f1a8542cb58b1e5a181ae4a4d306f7 /bot.js
parent219b64b51b0297469c7a0401767d7f533c8ac7c3 (diff)
downloadDLAP-a8ec9fe1b8e25af4e1faa6548ee74bfa0643831f.tar.gz
DLAP-a8ec9fe1b8e25af4e1faa6548ee74bfa0643831f.tar.bz2
DLAP-a8ec9fe1b8e25af4e1faa6548ee74bfa0643831f.zip
The start of scrapping the control panel feature
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 });
}
}
});