mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-19 04:53:30 +01:00
fix(InteractionResponses): set replied status on editReply (#5899)
Co-authored-by: Noel <buechler.noel@outlook.com> Co-authored-by: Noel <icrawltogo@gmail.com>
This commit is contained in:
@@ -114,9 +114,11 @@ class InteractionResponses {
|
|||||||
* .then(console.log)
|
* .then(console.log)
|
||||||
* .catch(console.error);
|
* .catch(console.error);
|
||||||
*/
|
*/
|
||||||
editReply(options) {
|
async editReply(options) {
|
||||||
if (!this.deferred && !this.replied) throw new Error('INTERACTION_NOT_REPLIED');
|
if (!this.deferred && !this.replied) throw new Error('INTERACTION_NOT_REPLIED');
|
||||||
return this.webhook.editMessage('@original', options);
|
const message = await this.webhook.editMessage('@original', options);
|
||||||
|
this.replied = true;
|
||||||
|
return message;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user