Skip to content

Commit

Permalink
fix: backport allow deletion of ephemeral messages to v13 (#8811)
Browse files Browse the repository at this point in the history
Co-authored-by: Noel <buechler.noel@outlook.com>
  • Loading branch information
Raraph84 and iCrawl committed Nov 25, 2022
1 parent 0e0851a commit 98846cf
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 1 addition & 0 deletions src/errors/Messages.js
Original file line number Diff line number Diff line change
Expand Up @@ -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.`,
Expand Down
1 change: 0 additions & 1 deletion src/structures/interfaces/InteractionResponses.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down

0 comments on commit 98846cf

Please sign in to comment.