fix: backport allow deletion of ephemeral messages to v13 (#8811)

Co-authored-by: Noel <buechler.noel@outlook.com>
This commit is contained in:
Raraph84
2022-11-25 18:35:19 +01:00
committed by GitHub
parent 0e0851aa18
commit 98846cf863
2 changed files with 1 additions and 1 deletions

View File

@@ -145,6 +145,7 @@ const Messages = {
INTERACTION_ALREADY_REPLIED: 'The reply to this interaction has already been sent or deferred.',
INTERACTION_NOT_REPLIED: 'The reply to this interaction has not been sent or deferred.',
/** @deprecated */
INTERACTION_EPHEMERAL_REPLIED: 'Ephemeral responses cannot be deleted.',
COMMAND_INTERACTION_OPTION_NOT_FOUND: name => `Required option "${name}" not found.`,

View File

@@ -164,7 +164,6 @@ class InteractionResponses {
* .catch(console.error);
*/
async deleteReply(message = '@original') {
if (this.ephemeral) throw new Error('INTERACTION_EPHEMERAL_REPLIED');
await this.webhook.deleteMessage(message);
}