Skip to content

Commit 4c4d1e8

Browse files
authored
🐛 fix: fix deleting the interaction on cancel button click (#46)
1 parent 78bf53d commit 4c4d1e8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/commands/docs/utils.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,8 @@ export const executeDocCommand = async (
8383
},
8484
});
8585
} else if (componentInteraction.isButton()) {
86-
await choiceInteraction.delete();
86+
console.log('Documentation command cancelled by user.');
87+
await interaction.deleteReply();
8788
}
8889
});
8990
} catch (error) {

0 commit comments

Comments
 (0)