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();