From e39b458215e4f9afaafafaeccbb59c5694ba8597 Mon Sep 17 00:00:00 2001 From: Ali Hammoud Date: Wed, 26 Nov 2025 18:02:26 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20fix:=20fix=20deleting=20the=20in?= =?UTF-8?q?teraction=20on=20cancel=20button=20click?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/commands/docs/utils.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/commands/docs/utils.ts b/src/commands/docs/utils.ts index fc39a97..ccae50a 100644 --- a/src/commands/docs/utils.ts +++ b/src/commands/docs/utils.ts @@ -83,7 +83,8 @@ export const executeDocCommand = async ( }, }); } else if (componentInteraction.isButton()) { - await choiceInteraction.delete(); + console.log('Documentation command cancelled by user.'); + await interaction.deleteReply(); } }); } catch (error) {