diff --git a/DiscordChatExporter.Core/Discord/Data/Channel.cs b/DiscordChatExporter.Core/Discord/Data/Channel.cs index 97f0129..f411c40 100644 --- a/DiscordChatExporter.Core/Discord/Data/Channel.cs +++ b/DiscordChatExporter.Core/Discord/Data/Channel.cs @@ -67,16 +67,14 @@ public partial record Channel var name = // Guild channel json.GetPropertyOrNull("name")?.GetNonWhiteSpaceStringOrNull() - ?? // DM channel - json.GetPropertyOrNull("recipients") + ?? json.GetPropertyOrNull("recipients") ?.EnumerateArrayOrNull() ?.Select(User.Parse) .Select(u => u.DisplayName) .Pipe(s => string.Join(", ", s)) - ?? // Fallback - id.ToString(); + ?? id.ToString(); var position = positionHint ?? json.GetPropertyOrNull("position")?.GetInt32OrNull();