From 98e80af87df8939afc1126bb64baf5d9cbccf0cb Mon Sep 17 00:00:00 2001 From: "Jill \"oatmealine\" Monoids" Date: Mon, 13 Nov 2023 19:41:07 +0300 Subject: [PATCH] just make the errors public at this point who cares --- src/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/index.ts b/src/index.ts index 9f4d3cd..3f7b982 100644 --- a/src/index.ts +++ b/src/index.ts @@ -92,8 +92,8 @@ bot.on(Events.InteractionCreate, async (interaction) => { try { await command.execute(interaction, interaction.member); } catch (error) { - if (interaction.isRepliable() && !interaction.replied && !interaction.deferred) interaction.reply({ content: '`ERROR`', ephemeral: true }); - if (interaction.deferred) interaction.followUp('`ERROR`'); + if (interaction.isRepliable() && !interaction.replied && !interaction.deferred) interaction.reply({ content: `\`ERROR\`\n\`\`\`\n${error}\n\`\`\``, ephemeral: true }); + if (interaction.deferred) interaction.followUp(`\`ERROR\`\n\`\`\`\n${error}\n\`\`\``); log.error(error); } } else if (interaction.isAutocomplete()) {