Skip to content

Commit

Permalink
fix(Message): Make author of referenced message nullable (#5929)
Browse files Browse the repository at this point in the history
  • Loading branch information
SkyFlags committed Jun 28, 2021
1 parent 03d3a5c commit dc671c8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/structures/Message.js
Expand Up @@ -332,7 +332,7 @@ class Message extends Base {
'mention_roles' in data ? data.mention_roles : this.mentions.roles,
'mention_everyone' in data ? data.mention_everyone : this.mentions.everyone,
'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();
Expand Down

0 comments on commit dc671c8

Please sign in to comment.