mirror of
https://github.com/Tyrrrz/DiscordChatExporter.git
synced 2026-03-31 09:33:03 -06:00
Fix format
This commit is contained in:
parent
b533e08d74
commit
532470e3db
|
|
@ -31,21 +31,24 @@ public record MessageSnapshot(
|
||||||
.GetPropertyOrNull("attachments")
|
.GetPropertyOrNull("attachments")
|
||||||
?.EnumerateArrayOrNull()
|
?.EnumerateArrayOrNull()
|
||||||
?.Select(Attachment.Parse)
|
?.Select(Attachment.Parse)
|
||||||
.ToArray() ?? [];
|
.ToArray()
|
||||||
|
?? [];
|
||||||
|
|
||||||
var embeds =
|
var embeds =
|
||||||
messageJson
|
messageJson
|
||||||
.GetPropertyOrNull("embeds")
|
.GetPropertyOrNull("embeds")
|
||||||
?.EnumerateArrayOrNull()
|
?.EnumerateArrayOrNull()
|
||||||
?.Select(Embed.Parse)
|
?.Select(Embed.Parse)
|
||||||
.ToArray() ?? [];
|
.ToArray()
|
||||||
|
?? [];
|
||||||
|
|
||||||
var stickers =
|
var stickers =
|
||||||
messageJson
|
messageJson
|
||||||
.GetPropertyOrNull("sticker_items")
|
.GetPropertyOrNull("sticker_items")
|
||||||
?.EnumerateArrayOrNull()
|
?.EnumerateArrayOrNull()
|
||||||
?.Select(Sticker.Parse)
|
?.Select(Sticker.Parse)
|
||||||
.ToArray() ?? [];
|
.ToArray()
|
||||||
|
?? [];
|
||||||
|
|
||||||
var timestamp =
|
var timestamp =
|
||||||
messageJson.GetPropertyOrNull("timestamp")?.GetDateTimeOffsetOrNull()
|
messageJson.GetPropertyOrNull("timestamp")?.GetDateTimeOffsetOrNull()
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue