mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-17 20:13:30 +01:00
fix(Message): Make author of referenced message nullable (#5929)
This commit is contained in:
@@ -332,7 +332,7 @@ class Message extends Base {
|
|||||||
'mention_roles' in data ? data.mention_roles : this.mentions.roles,
|
'mention_roles' in data ? data.mention_roles : this.mentions.roles,
|
||||||
'mention_everyone' in data ? data.mention_everyone : this.mentions.everyone,
|
'mention_everyone' in data ? data.mention_everyone : this.mentions.everyone,
|
||||||
'mention_channels' in data ? data.mention_channels : this.mentions.crosspostedChannels,
|
'mention_channels' in data ? data.mention_channels : this.mentions.crosspostedChannels,
|
||||||
'referenced_message' in data ? data.referenced_message.author : this.mentions.repliedUser,
|
data.referenced_message?.author ?? this.mentions.repliedUser,
|
||||||
);
|
);
|
||||||
|
|
||||||
this.flags = new MessageFlags('flags' in data ? data.flags : 0).freeze();
|
this.flags = new MessageFlags('flags' in data ? data.flags : 0).freeze();
|
||||||
|
|||||||
Reference in New Issue
Block a user