We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent efa50fc commit 32dff01Copy full SHA for 32dff01
packages/discord.js/src/structures/interfaces/InteractionResponses.js
@@ -272,9 +272,11 @@ class InteractionResponses {
272
* @param {string|MessagePayload|InteractionReplyOptions} options The options for the reply
273
* @returns {Promise<Message>}
274
*/
275
- followUp(options) {
+ async followUp(options) {
276
if (!this.deferred && !this.replied) return Promise.reject(new DiscordjsError(ErrorCodes.InteractionNotReplied));
277
- return this.webhook.send(options);
+ const msg = await this.webhook.send(options);
278
+ this.replied = true;
279
+ return msg;
280
}
281
282
/**
0 commit comments