From 7c99ce833fdbb996c26442d27a8d71646c376e3c Mon Sep 17 00:00:00 2001 From: GRZ4NA Date: Tue, 10 Aug 2021 03:09:17 +0200 Subject: [PATCH] added deleteReply --- src/Command.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Command.ts b/src/Command.ts index 6340546..dd1a2fa 100644 --- a/src/Command.ts +++ b/src/Command.ts @@ -154,6 +154,8 @@ export class Command { await interaction.editReply({ embeds: [fnResult] }); } else if (this.announceSuccess) { throw new OperationSuccess(this); + } else if (interaction instanceof CommandInteraction) { + await interaction.deleteReply(); } } else { throw new PermissionsError(