mirror of
https://github.com/Tyrrrz/DiscordChatExporter.git
synced 2026-04-28 08:46:44 +00:00
Lazy workaround for calls in DMs
This commit is contained in:
@@ -24,6 +24,10 @@ namespace DiscordChatExporter.Services
|
|||||||
var editedTimeStamp = messageJson.Value<DateTime?>("edited_timestamp");
|
var editedTimeStamp = messageJson.Value<DateTime?>("edited_timestamp");
|
||||||
string content = messageJson.Value<string>("content");
|
string content = messageJson.Value<string>("content");
|
||||||
|
|
||||||
|
// Lazy workaround for calls
|
||||||
|
if (messageJson["call"] != null)
|
||||||
|
content = "Started a call.";
|
||||||
|
|
||||||
// Get author
|
// Get author
|
||||||
var authorJson = messageJson["author"];
|
var authorJson = messageJson["author"];
|
||||||
string authorId = authorJson.Value<string>("id");
|
string authorId = authorJson.Value<string>("id");
|
||||||
|
|||||||
Reference in New Issue
Block a user