Fix recursive initialization issue

pull/1314/head
Tyrrrz 2 weeks ago
parent 1fb6156187
commit e664eab5fb

@ -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

Loading…
Cancel
Save