Interactions: fix on failed reply to be ephemeral

fixes #17
This commit is contained in:
Wroclaw 2023-09-21 20:57:40 +02:00
parent 96dd7bce95
commit 2629659ffc

View file

@ -34,8 +34,9 @@ export default class CommandManager {
interaction.reply({
embeds: [{
color: 0xff0000,
description: `Failed to perform interaction:\n\`${e}\``,
}]
description: `Failed to perform interaction:\n\`\`${e}\`\``,
}],
ephemeral: true,
}).catch(() => {/* NOTE: We're still logging the issue that happened to the console */});
console.error(`Failed to perform interaction: ${interaction.commandName}`);
console.error(e);