mirror of
https://github.com/Tyrrrz/DiscordChatExporter.git
synced 2025-05-24 19:54:22 -04:00
Fix wrong json node being used to parse mentioned users in messages
This commit is contained in:
parent
481991bd00
commit
c2cebe99e3
1 changed files with 1 additions and 1 deletions
|
@ -174,7 +174,7 @@ namespace DiscordChatExporter.Core.Services
|
||||||
var embeds = json["embeds"].EmptyIfNull().Select(ParseEmbed).ToArray();
|
var embeds = json["embeds"].EmptyIfNull().Select(ParseEmbed).ToArray();
|
||||||
|
|
||||||
// Get mentioned users
|
// Get mentioned users
|
||||||
var mentionedUsers = json["mentioned_users"].EmptyIfNull().Select(ParseUser).ToArray();
|
var mentionedUsers = json["mentions"].EmptyIfNull().Select(ParseUser).ToArray();
|
||||||
|
|
||||||
return new Message(id, channelId, type, author, timestamp, editedTimestamp, content, attachments, embeds,
|
return new Message(id, channelId, type, author, timestamp, editedTimestamp, content, attachments, embeds,
|
||||||
mentionedUsers);
|
mentionedUsers);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue