From d4baba46d6b8aba3bfbffc1d68a26dff8d9f6794 Mon Sep 17 00:00:00 2001 From: Alexey Golub Date: Wed, 12 Jul 2017 23:12:56 +0300 Subject: [PATCH] Lazy workaround for calls in DMs --- DiscordChatExporter/Services/DiscordApiService.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/DiscordChatExporter/Services/DiscordApiService.cs b/DiscordChatExporter/Services/DiscordApiService.cs index 319eac3..81426e1 100644 --- a/DiscordChatExporter/Services/DiscordApiService.cs +++ b/DiscordChatExporter/Services/DiscordApiService.cs @@ -24,6 +24,10 @@ namespace DiscordChatExporter.Services var editedTimeStamp = messageJson.Value("edited_timestamp"); string content = messageJson.Value("content"); + // Lazy workaround for calls + if (messageJson["call"] != null) + content = "Started a call."; + // Get author var authorJson = messageJson["author"]; string authorId = authorJson.Value("id");