From 67a058e1190655907ba691f2be7d9171974656a0 Mon Sep 17 00:00:00 2001 From: Naiyar <137700126+imnaiyar@users.noreply.github.com> Date: Sun, 5 Jan 2025 01:02:28 +0530 Subject: [PATCH] fix: mark replied true for followUps --- .../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 899ef64743fd..a0294518717f 100644 --- a/packages/discord.js/src/structures/interfaces/InteractionResponses.js +++ b/packages/discord.js/src/structures/interfaces/InteractionResponses.js @@ -203,9 +203,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; } /**