From 1c253d25cb1d35aa987d76e07806999c562712d6 Mon Sep 17 00:00:00 2001 From: Andrew Lee Date: Sun, 2 Mar 2025 16:24:26 -0500 Subject: Bringing more features from 2.x; ESLint; API --- bot/src/events/InteractionCreate.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'bot/src/events/InteractionCreate.js') 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 }); } } -} +}; -- cgit v1.2.3