mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-09 16:13:31 +01:00
feat(Interactions): option to auto-fetch replies (#5831)
This commit is contained in:
@@ -16,9 +16,9 @@ class MessageComponentInteraction extends Interaction {
|
||||
|
||||
/**
|
||||
* The message to which the component was attached
|
||||
* @type {?(Message|APIMessage)}
|
||||
* @type {Message|APIMessage}
|
||||
*/
|
||||
this.message = data.message ? this.channel?.messages.add(data.message) ?? data.message : null;
|
||||
this.message = this.channel?.messages.add(data.message) ?? data.message;
|
||||
|
||||
/**
|
||||
* The custom ID of the component which was interacted with
|
||||
|
||||
Reference in New Issue
Block a user