fix: don't try to re-send stickers and activity invites

This commit is contained in:
spiral
2022-01-14 23:22:12 -05:00
parent 2639989183
commit a16903037f
5 changed files with 45 additions and 1 deletions

View File

@@ -43,6 +43,7 @@ public record Message
public ulong Id { get; init; }
public ulong ChannelId { get; init; }
public ulong? GuildId { get; init; }
public MessageActivity? Activity { get; init; }
public User Author { get; init; }
public string? Content { get; init; }
public string? Timestamp { get; init; }
@@ -54,6 +55,8 @@ public record Message
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 ulong? WebhookId { get; init; }
@@ -69,6 +72,8 @@ public record Message
public record Reference(ulong? GuildId, ulong? ChannelId, ulong? MessageId);
public record MessageActivity(int Type, string PartyId);
public record Attachment
{
public ulong Id { get; init; }

29
Myriad/Types/Sticker.cs Normal file
View File

@@ -0,0 +1,29 @@
namespace Myriad.Types;
public record Sticker
{
public enum StickerType
{
STANDARD = 1,
GUILD = 2,
}
public enum StickerFormatType
{
PNG = 1,
APNG = 2,
LOTTIE = 3,
}
public ulong Id { get; init; }
public StickerType Type { get; init; }
public ulong? PackId { get; init; }
public string Name { get; init; }
public string? Description { get; init; }
public string Tags { get; init; }
public string Asset { get; init; }
public bool Available { get; init; }
public ulong? GuildId { get; init; }
public User? User { get; init; }
public int? SortValue { get; init; }
}