mirror of
https://github.com/Tyrrrz/DiscordChatExporter.git
synced 2024-09-19 04:08:45 -04:00
Lazy workaround for calls in DMs
This commit is contained in:
parent
0bfcac4749
commit
d4baba46d6
1 changed files with 4 additions and 0 deletions
|
@ -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");
|
||||
|
|
Loading…
Reference in a new issue