diff options
| author | Andrew Lee <alee14498@protonmail.com> | 2022-07-05 18:16:06 -0400 |
|---|---|---|
| committer | Andrew Lee <alee14498@protonmail.com> | 2022-07-05 18:16:06 -0400 |
| commit | a8ec9fe1b8e25af4e1faa6548ee74bfa0643831f (patch) | |
| tree | 70960f5366f1a8542cb58b1e5a181ae4a4d306f7 /bot.js | |
| parent | 219b64b51b0297469c7a0401767d7f533c8ac7c3 (diff) | |
| download | DLAP-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.js | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -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 }); } } }); |
