Events: Fix error messages not coming through
if the interaction has already been deferred or replied to
This commit is contained in:
@@ -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
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user