Dont add null users to Message.MentionedUsers
This commit is contained in:
@@ -233,6 +233,7 @@ namespace Discord
|
|||||||
{
|
{
|
||||||
MentionedUsers = model.Mentions
|
MentionedUsers = model.Mentions
|
||||||
.Select(x => _client.Users[x.Id, Channel.Server?.Id])
|
.Select(x => _client.Users[x.Id, Channel.Server?.Id])
|
||||||
|
.Where(x => x != null)
|
||||||
.ToArray();
|
.ToArray();
|
||||||
}
|
}
|
||||||
if (model.IsMentioningEveryone != null)
|
if (model.IsMentioningEveryone != null)
|
||||||
|
|||||||
Reference in New Issue
Block a user