From e664eab5fb2b104dfef6d9053b6a21dac80571d7 Mon Sep 17 00:00:00 2001 From: Tyrrrz <1935960+Tyrrrz@users.noreply.github.com> Date: Wed, 6 Nov 2024 20:16:53 +0200 Subject: [PATCH] Fix recursive initialization issue --- DiscordChatExporter.Core/Discord/Data/Guild.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/DiscordChatExporter.Core/Discord/Data/Guild.cs b/DiscordChatExporter.Core/Discord/Data/Guild.cs index 3e39443..98ba4d1 100644 --- a/DiscordChatExporter.Core/Discord/Data/Guild.cs +++ b/DiscordChatExporter.Core/Discord/Data/Guild.cs @@ -8,7 +8,7 @@ namespace DiscordChatExporter.Core.Discord.Data; // https://discord.com/developers/docs/resources/guild#guild-object public partial record Guild(Snowflake Id, string Name, string IconUrl) : IHasId { - public bool IsDirect { get; } = Id == DirectMessages.Id; + public bool IsDirect { get; } = Id == Snowflake.Zero; } public partial record Guild