[HTML] Add indication for pinned messages

Closes #193
This commit is contained in:
Alexey Golub
2019-09-14 19:31:24 +03:00
parent 9241b7d2d1
commit 2cdb230b1e
6 changed files with 39 additions and 19 deletions

View File

@@ -201,8 +201,11 @@ namespace DiscordChatExporter.Core.Services
// Get mentioned users
var mentionedUsers = json["mentions"].EmptyIfNull().Select(ParseUser).ToArray();
// Get whether this message is pinned
var isPinned = json["pinned"].Value<bool>();
return new Message(id, channelId, type, author, timestamp, editedTimestamp, content, attachments, embeds,
reactions, mentionedUsers);
reactions, mentionedUsers, isPinned);
}
}
}