From 2629659ffc64d78ff2506cea7a70f0c50aed7ff4 Mon Sep 17 00:00:00 2001 From: Wroclaw Date: Thu, 21 Sep 2023 20:57:40 +0200 Subject: [PATCH] Interactions: fix on failed reply to be ephemeral fixes #17 --- src/interactionManager.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/interactionManager.ts b/src/interactionManager.ts index ff1614b..c80b32d 100644 --- a/src/interactionManager.ts +++ b/src/interactionManager.ts @@ -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);