Remove some unused fields on cached models

This commit is contained in:
Ske 2022-06-03 10:39:29 +02:00
parent 614059c79f
commit 4df8629b35
8 changed files with 34 additions and 34 deletions

View File

@ -22,8 +22,8 @@ public record Channel
public ulong? GuildId { get; init; }
public int? Position { get; init; }
public string? Name { get; init; }
public string? Topic { get; init; }
public bool? Nsfw { get; init; }
// public string? Topic { get; init; }
// public bool? Nsfw { get; init; }
public ulong? ParentId { get; init; }
public Overwrite[]? PermissionOverwrites { get; init; }
public User[]? Recipients { get; init; } // NOTE: this may be null for stub channel objects

View File

@ -11,8 +11,8 @@ public record Embed
public EmbedFooter? Footer { get; init; }
public EmbedImage? Image { get; init; }
public EmbedThumbnail? Thumbnail { get; init; }
public EmbedVideo? Video { get; init; }
public EmbedProvider? Provider { get; init; }
// public EmbedVideo? Video { get; init; }
// public EmbedProvider? Provider { get; init; }
public EmbedAuthor? Author { get; init; }
public Field[]? Fields { get; init; }

View File

@ -4,5 +4,5 @@ public record Emoji
{
public ulong? Id { get; init; }
public string? Name { get; init; }
public bool? Animated { get; init; }
// public bool? Animated { get; init; }
}

View File

@ -12,19 +12,19 @@ public record Guild
{
public ulong Id { get; init; }
public string Name { get; init; }
public string? Icon { get; init; }
public string? Splash { get; init; }
public string? DiscoverySplash { get; init; }
public bool? Owner { get; init; }
// public string? Icon { get; init; }
// public string? Splash { get; init; }
// public string? DiscoverySplash { get; init; }
// public bool? Owner { get; init; }
public ulong OwnerId { get; init; }
public string Region { get; init; }
public ulong? AfkChannelId { get; init; }
public int AfkTimeout { get; init; }
public bool? WidgetEnabled { get; init; }
public ulong? WidgetChannelId { get; init; }
public int VerificationLevel { get; init; }
// public string Region { get; init; }
// public ulong? AfkChannelId { get; init; }
// public int AfkTimeout { get; init; }
// public bool? WidgetEnabled { get; init; }
// public ulong? WidgetChannelId { get; init; }
// public int VerificationLevel { get; init; }
public PremiumTier PremiumTier { get; init; }
public Role[] Roles { get; init; }
public string[] Features { get; init; }
// public string[] Features { get; init; }
}

View File

@ -10,5 +10,5 @@ public record GuildMemberPartial
public string? Avatar { get; init; }
public string? Nick { get; init; }
public ulong[] Roles { get; init; }
public string JoinedAt { get; init; }
// public string JoinedAt { get; init; }
}

View File

@ -46,29 +46,29 @@ public record Message
public MessageActivity? Activity { get; init; }
public User Author { get; init; }
public string? Content { get; init; }
public string? Timestamp { get; init; }
public string? EditedTimestamp { get; init; }
public bool Tts { get; init; }
public bool MentionEveryone { get; init; }
// public string? Timestamp { get; init; }
// public string? EditedTimestamp { get; init; }
// public bool Tts { get; init; }
// public bool MentionEveryone { get; init; }
public User.Extra[] Mentions { get; init; }
public ulong[] MentionRoles { get; init; }
// public ulong[] MentionRoles { get; init; }
public Attachment[] Attachments { get; init; }
public Embed[]? Embeds { get; init; }
public Sticker[]? StickerItems { get; init; }
public Sticker[]? Stickers { get; init; }
public Reaction[] Reactions { get; init; }
public bool Pinned { get; init; }
// public Sticker[]? Stickers { get; init; }
// public Reaction[] Reactions { get; init; }
// public bool Pinned { get; init; }
public ulong? WebhookId { get; init; }
public ulong? ApplicationId { get; init; }
public MessageType Type { get; init; }
public Reference? MessageReference { get; set; }
public MessageFlags Flags { get; init; }
// public MessageFlags Flags { get; init; }
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
public Optional<Message?> ReferencedMessage { get; init; }
public MessageComponent[]? Components { get; init; }
// public MessageComponent[]? Components { get; init; }
public record Reference(ulong? GuildId, ulong? ChannelId, ulong? MessageId);
@ -82,8 +82,8 @@ public record Message
public int Size { get; init; }
public string Url { get; init; }
public string ProxyUrl { get; init; }
public int? Width { get; init; }
public int? Height { get; init; }
// public int? Width { get; init; }
// public int? Height { get; init; }
}
public record Reaction

View File

@ -4,10 +4,10 @@ public record Role
{
public ulong Id { get; init; }
public string Name { get; init; }
public uint Color { get; init; }
public bool Hoist { get; init; }
// public uint Color { get; init; }
// public bool Hoist { get; init; }
public int Position { get; init; }
public PermissionSet Permissions { get; init; }
public bool Managed { get; init; }
// public bool Managed { get; init; }
public bool Mentionable { get; init; }
}

View File

@ -26,10 +26,10 @@ public record User
public string? Avatar { get; init; }
public bool Bot { get; init; }
public bool? System { get; init; }
public Flags PublicFlags { get; init; }
// public Flags PublicFlags { get; init; }
public record Extra: User
{
public GuildMemberPartial? Member { get; init; }
// public GuildMemberPartial? Member { get; init; }
}
}