From 58540a9398a643dcad4d8080e2e45bcd69d1247f Mon Sep 17 00:00:00 2001 From: tyrrrz <1935960+Tyrrrz@users.noreply.github.com> Date: Sun, 19 Apr 2026 22:55:32 +0300 Subject: [PATCH] asd --- DiscordChatExporter.Core/Discord/Data/Embeds/Embed.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/DiscordChatExporter.Core/Discord/Data/Embeds/Embed.cs b/DiscordChatExporter.Core/Discord/Data/Embeds/Embed.cs index cfdf0364..75fd1518 100644 --- a/DiscordChatExporter.Core/Discord/Data/Embeds/Embed.cs +++ b/DiscordChatExporter.Core/Discord/Data/Embeds/Embed.cs @@ -45,7 +45,8 @@ public partial record Embed var title = json.GetPropertyOrNull("title")?.GetStringOrNull(); var kind = json.GetPropertyOrNull("type") - .Pipe(s => Enum.ParseOrDefault(s?.GetStringOrNull(), true, EmbedKind.Rich)); + ?.GetStringOrNull() + .Pipe(s => Enum.ParseOrDefault(s, true, EmbedKind.Rich)); var url = json.GetPropertyOrNull("url")?.GetNonWhiteSpaceStringOrNull(); var timestamp = json.GetPropertyOrNull("timestamp")?.GetDateTimeOffsetOrNull();