Skip to content

Commit 32dff01

Browse files
imnaiyarJiralite
andcommittedJan 12, 2025··
fix(InteractionResponses): mark replied true for followUps (#10688)
fix: mark replied true for followUps Co-authored-by: Jiralite <33201955+Jiralite@users.noreply.github.com>
1 parent efa50fc commit 32dff01

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed
 

‎packages/discord.js/src/structures/interfaces/InteractionResponses.js

+4-2
Original file line numberDiff line numberDiff line change
@@ -272,9 +272,11 @@ class InteractionResponses {
272272
* @param {string|MessagePayload|InteractionReplyOptions} options The options for the reply
273273
* @returns {Promise<Message>}
274274
*/
275-
followUp(options) {
275+
async followUp(options) {
276276
if (!this.deferred && !this.replied) return Promise.reject(new DiscordjsError(ErrorCodes.InteractionNotReplied));
277-
return this.webhook.send(options);
277+
const msg = await this.webhook.send(options);
278+
this.replied = true;
279+
return msg;
278280
}
279281

280282
/**

0 commit comments

Comments
 (0)
Please sign in to comment.