Lazy workaround for calls in DMs

This commit is contained in:
Alexey Golub 2017-07-12 23:12:56 +03:00
parent 0bfcac4749
commit d4baba46d6

View file

@ -24,6 +24,10 @@ namespace DiscordChatExporter.Services
var editedTimeStamp = messageJson.Value<DateTime?>("edited_timestamp");
string content = messageJson.Value<string>("content");
// Lazy workaround for calls
if (messageJson["call"] != null)
content = "Started a call.";
// Get author
var authorJson = messageJson["author"];
string authorId = authorJson.Value<string>("id");