mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-10 16:43:31 +01:00
feat(Message): applicationID for interaction responses (#5765)
This commit is contained in:
@@ -192,7 +192,13 @@ class Message extends Base {
|
||||
* Supplemental application information for group activities
|
||||
* @type {?ClientApplication}
|
||||
*/
|
||||
this.application = data.application ? new ClientApplication(this.client, data.application) : null;
|
||||
this.groupActivityApplication = data.application ? new ClientApplication(this.client, data.application) : null;
|
||||
|
||||
/**
|
||||
* ID of the application of the interaction that sent this message, if any
|
||||
* @type {?Snowflake}
|
||||
*/
|
||||
this.applicationID = data.application_id ?? null;
|
||||
|
||||
/**
|
||||
* Group activity
|
||||
@@ -761,7 +767,7 @@ class Message extends Base {
|
||||
return super.toJSON({
|
||||
channel: 'channelID',
|
||||
author: 'authorID',
|
||||
application: 'applicationID',
|
||||
groupActivityApplication: 'groupActivityApplicationID',
|
||||
guild: 'guildID',
|
||||
cleanContent: true,
|
||||
member: false,
|
||||
|
||||
Reference in New Issue
Block a user