just make the errors public at this point who cares
This commit is contained in:
parent
d5e3ad8e99
commit
98e80af87d
|
@ -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()) {
|
||||
|
|
Loading…
Reference in New Issue