just make the errors public at this point who cares

This commit is contained in:
Jill 2023-11-13 19:41:07 +03:00
parent d5e3ad8e99
commit 98e80af87d
Signed by: oat
GPG Key ID: 33489AA58A955108
1 changed files with 2 additions and 2 deletions

View File

@ -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()) {