mirror of
https://github.com/Tyrrrz/DiscordChatExporter.git
synced 2026-02-28 12:13:39 +00:00
Improve reactions
This commit is contained in:
@@ -141,11 +141,10 @@ namespace DiscordChatExporter.Core.Services
|
||||
private Reaction ParseReaction(JToken json)
|
||||
{
|
||||
var count = json["count"].Value<int>();
|
||||
var me = json["me"].Value<bool>();
|
||||
var id = json["emoji"]["id"]?.ToString();
|
||||
var name = json["emoji"]["name"].ToString();
|
||||
var emojiId = json["emoji"]["id"]?.Value<string>();
|
||||
var emojiName = json["emoji"]["name"].Value<string>();
|
||||
|
||||
return new Reaction(count, me, id, name);
|
||||
return new Reaction(count, emojiId, emojiName);
|
||||
}
|
||||
|
||||
private Message ParseMessage(JToken json)
|
||||
|
||||
Reference in New Issue
Block a user