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) {