From 4df8629b35d26dd26ad92399acf4670c631a6524 Mon Sep 17 00:00:00 2001 From: Ske Date: Fri, 3 Jun 2022 10:39:29 +0200 Subject: [PATCH] Remove some unused fields on cached models --- Myriad/Types/Channel.cs | 4 ++-- Myriad/Types/Embed.cs | 4 ++-- Myriad/Types/Emoji.cs | 2 +- Myriad/Types/Guild.cs | 22 +++++++++++----------- Myriad/Types/GuildMember.cs | 2 +- Myriad/Types/Message.cs | 24 ++++++++++++------------ Myriad/Types/Role.cs | 6 +++--- Myriad/Types/User.cs | 4 ++-- 8 files changed, 34 insertions(+), 34 deletions(-) diff --git a/Myriad/Types/Channel.cs b/Myriad/Types/Channel.cs index bca93019..418c3eb2 100644 --- a/Myriad/Types/Channel.cs +++ b/Myriad/Types/Channel.cs @@ -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 diff --git a/Myriad/Types/Embed.cs b/Myriad/Types/Embed.cs index b71b633a..5c4e2af8 100644 --- a/Myriad/Types/Embed.cs +++ b/Myriad/Types/Embed.cs @@ -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; } diff --git a/Myriad/Types/Emoji.cs b/Myriad/Types/Emoji.cs index 2e41b90a..7c65a39e 100644 --- a/Myriad/Types/Emoji.cs +++ b/Myriad/Types/Emoji.cs @@ -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; } } \ No newline at end of file diff --git a/Myriad/Types/Guild.cs b/Myriad/Types/Guild.cs index 2e44237b..e0ce73b4 100644 --- a/Myriad/Types/Guild.cs +++ b/Myriad/Types/Guild.cs @@ -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; } } \ No newline at end of file diff --git a/Myriad/Types/GuildMember.cs b/Myriad/Types/GuildMember.cs index 097c8938..9f163801 100644 --- a/Myriad/Types/GuildMember.cs +++ b/Myriad/Types/GuildMember.cs @@ -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; } } \ No newline at end of file diff --git a/Myriad/Types/Message.cs b/Myriad/Types/Message.cs index 55928de9..85d85e86 100644 --- a/Myriad/Types/Message.cs +++ b/Myriad/Types/Message.cs @@ -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 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 diff --git a/Myriad/Types/Role.cs b/Myriad/Types/Role.cs index 4347b117..777a43ee 100644 --- a/Myriad/Types/Role.cs +++ b/Myriad/Types/Role.cs @@ -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; } } \ No newline at end of file diff --git a/Myriad/Types/User.cs b/Myriad/Types/User.cs index 359ab1fb..49ac434c 100644 --- a/Myriad/Types/User.cs +++ b/Myriad/Types/User.cs @@ -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; } } } \ No newline at end of file