From 32dff01f291271bde3cfb354964ed140a6fa82d7 Mon Sep 17 00:00:00 2001 From: Naiyar <137700126+imnaiyar@users.noreply.github.com> Date: Mon, 13 Jan 2025 03:52:45 +0600 Subject: [PATCH] fix(InteractionResponses): mark replied true for followUps (#10688) fix: mark replied true for followUps Co-authored-by: Jiralite <33201955+Jiralite@users.noreply.github.com> --- .../src/structures/interfaces/InteractionResponses.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/packages/discord.js/src/structures/interfaces/InteractionResponses.js b/packages/discord.js/src/structures/interfaces/InteractionResponses.js index e5b25fbb1..27380f890 100644 --- a/packages/discord.js/src/structures/interfaces/InteractionResponses.js +++ b/packages/discord.js/src/structures/interfaces/InteractionResponses.js @@ -272,9 +272,11 @@ class InteractionResponses { * @param {string|MessagePayload|InteractionReplyOptions} options The options for the reply * @returns {Promise} */ - followUp(options) { + async followUp(options) { if (!this.deferred && !this.replied) return Promise.reject(new DiscordjsError(ErrorCodes.InteractionNotReplied)); - return this.webhook.send(options); + const msg = await this.webhook.send(options); + this.replied = true; + return msg; } /**