Events: Fix error messages not coming through

if the interaction has already been deferred or replied to
This commit is contained in:
2022-09-06 23:49:56 +02:00
parent ee12d26cc6
commit 7340837ed7

View File

@@ -56,7 +56,7 @@ module.exports = {
await command.execute(interaction); await command.execute(interaction);
} catch (err) { } catch (err) {
if (err) console.log(err); if (err) console.log(err);
await interaction.reply({ await interaction.channel.send({
content: `An error occured processing the command :(\n \`\`\`${err.stack}\`\`\``, content: `An error occured processing the command :(\n \`\`\`${err.stack}\`\`\``,
ephemeral: false ephemeral: false
}); });