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

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