added deleteReply

This commit is contained in:
mmacierzanka committed 2021-08-10 03:09:17 +02:00
1 parent 4c7e295f12
commit 7c99ce833f
1 file changed
+2
+2
View File
@@ -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(