fix(InteractionResponses): mark replied true for followUps (#10688)

fix: mark replied true for followUps

Co-authored-by: Jiralite <33201955+Jiralite@users.noreply.github.com>
This commit is contained in:
Naiyar
2025-01-13 03:52:45 +06:00
committed by Jiralite
parent efa50fc3fa
commit 32dff01f29

View File

@@ -272,9 +272,11 @@ class InteractionResponses {
* @param {string|MessagePayload|InteractionReplyOptions} options The options for the reply
* @returns {Promise<Message>}
*/
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;
}
/**