feat: update to Discord API v10

This commit is contained in:
spiral 2022-02-26 16:28:20 -05:00
parent 6a4033b2a9
commit 32a73eef09
No known key found for this signature in database
GPG key ID: 244A11E4B0BCF40E
13 changed files with 28 additions and 27 deletions

View file

@ -11,7 +11,7 @@ public record MessageEditRequest
public Optional<string?> Content { get; init; }
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
public Optional<Embed?> Embed { get; init; }
public Optional<Embed[]?> Embeds { get; init; }
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
public Optional<Message.MessageFlags> Flags { get; init; }

View file

@ -8,6 +8,6 @@ public record MessageRequest
public object? Nonce { get; set; }
public bool Tts { get; set; }
public AllowedMentions? AllowedMentions { get; set; }
public Embed? Embed { get; set; }
public Embed[]? Embeds { get; set; }
public MessageComponent[]? Components { get; set; }
}