From c2cebe99e3e782d3dde679f27deea7e81264b41d Mon Sep 17 00:00:00 2001 From: Alexey Golub Date: Mon, 25 Jun 2018 02:28:38 +0300 Subject: [PATCH] Fix wrong json node being used to parse mentioned users in messages --- DiscordChatExporter.Core/Services/DataService.Parsers.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/DiscordChatExporter.Core/Services/DataService.Parsers.cs b/DiscordChatExporter.Core/Services/DataService.Parsers.cs index c197a57..dd88034 100644 --- a/DiscordChatExporter.Core/Services/DataService.Parsers.cs +++ b/DiscordChatExporter.Core/Services/DataService.Parsers.cs @@ -174,7 +174,7 @@ namespace DiscordChatExporter.Core.Services var embeds = json["embeds"].EmptyIfNull().Select(ParseEmbed).ToArray(); // 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, mentionedUsers);