From 6d3d00b44577a70e840f0187d6894043677c5329 Mon Sep 17 00:00:00 2001 From: Pronin Egor <42776347+MrZillaGold@users.noreply.github.com> Date: Thu, 24 Jun 2021 09:07:33 +1000 Subject: [PATCH] fix(InteractionResponses): set replied status on editReply (#5899) Co-authored-by: Noel Co-authored-by: Noel --- src/structures/interfaces/InteractionResponses.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/structures/interfaces/InteractionResponses.js b/src/structures/interfaces/InteractionResponses.js index ea899a8f6..4981b3551 100644 --- a/src/structures/interfaces/InteractionResponses.js +++ b/src/structures/interfaces/InteractionResponses.js @@ -114,9 +114,11 @@ class InteractionResponses { * .then(console.log) * .catch(console.error); */ - editReply(options) { + async editReply(options) { if (!this.deferred && !this.replied) throw new Error('INTERACTION_NOT_REPLIED'); - return this.webhook.editMessage('@original', options); + const message = await this.webhook.editMessage('@original', options); + this.replied = true; + return message; } /**