Remove some unused fields on cached models
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user