From 101bef1c52461aed8b65096f6ed6ab50e9db618a 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 947665232..2f15763dd 100644 --- a/packages/discord.js/src/structures/interfaces/InteractionResponses.js +++ b/packages/discord.js/src/structures/interfaces/InteractionResponses.js @@ -198,9 +198,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; } /**