aboutsummaryrefslogtreecommitdiff
path: root/bot/src/events/InteractionCreate.js
diff options
context:
space:
mode:
authorAndrew Lee <andrew@alee14.me>2025-03-02 16:24:26 -0500
committerAndrew Lee <andrew@alee14.me>2025-03-02 16:24:26 -0500
commit1c253d25cb1d35aa987d76e07806999c562712d6 (patch)
tree02655b6a3bed5b3604b56deb4c2af199f2609a64 /bot/src/events/InteractionCreate.js
parentf98f7e6a34f02e8d6ea6673fbe68ab6db28a2e89 (diff)
downloadAleeBot-1c253d25cb1d35aa987d76e07806999c562712d6.tar.gz
AleeBot-1c253d25cb1d35aa987d76e07806999c562712d6.tar.bz2
AleeBot-1c253d25cb1d35aa987d76e07806999c562712d6.zip
Bringing more features from 2.x; ESLint; API
Diffstat (limited to 'bot/src/events/InteractionCreate.js')
-rw-r--r--bot/src/events/InteractionCreate.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/bot/src/events/InteractionCreate.js b/bot/src/events/InteractionCreate.js
index b1e7593..4e39241 100644
--- a/bot/src/events/InteractionCreate.js
+++ b/bot/src/events/InteractionCreate.js
@@ -1,4 +1,4 @@
-import { Events, MessageFlags } from "discord.js";
+import { Events, MessageFlags } from 'discord.js';
export default {
name: Events.InteractionCreate,
@@ -13,7 +13,7 @@ export default {
await command.execute(interaction, client);
} catch (e) {
console.error(e);
- await interaction.reply({ content: 'Something went wrong.', flags: MessageFlags.Ephemeral });
+ await interaction.reply({ content: `Something went wrong. Send the following error message to Alee:\n\`\`\`${e}\`\`\``, flags: MessageFlags.Ephemeral });
}
}
-}
+};