feat(bot): allow clearing embeds from proxied messages

This commit is contained in:
Iris System
2022-12-31 19:24:19 +13:00
parent 31ff2b7c87
commit 25c55df3b3
3 changed files with 23 additions and 9 deletions

View File

@@ -1,6 +1,7 @@
using System.Text.Json.Serialization;
using Myriad.Utils;
using Myriad.Types;
namespace Myriad.Rest.Types.Requests;
@@ -11,4 +12,7 @@ public record WebhookMessageEditRequest
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
public Optional<AllowedMentions> AllowedMentions { get; init; }
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
public Optional<Embed[]?> Embeds { get; init; }
}