Events: Fix error messages not coming through

if the interaction has already been deferred or replied to
This commit is contained in:
Minz committed 2022-09-06 23:49:56 +02:00
1 parent ee12d26cc6
commit 7340837ed7
1 file changed
+1 -1
+1 -1
View File
@@ -56,7 +56,7 @@ module.exports = {
await command.execute(interaction);
} catch (err) {
if (err) console.log(err);
await interaction.reply({
await interaction.channel.send({
content: `An error occured processing the command :(\n \`\`\`${err.stack}\`\`\``,
ephemeral: false
});