[Feature] Add AppliedTags to DiscordWebhookClient.SendXAsync (#2805)
This commit is contained in:
@@ -45,6 +45,9 @@ namespace Discord.API.Rest
|
||||
[JsonProperty("thread_name")]
|
||||
public Optional<string> ThreadName { get; set; }
|
||||
|
||||
[JsonProperty("applied_tags")]
|
||||
public Optional<ulong[]> AppliedTags { get; set; }
|
||||
|
||||
public IReadOnlyDictionary<string, object> ToDictionary()
|
||||
{
|
||||
var d = new Dictionary<string, object>();
|
||||
@@ -75,6 +78,8 @@ namespace Discord.API.Rest
|
||||
payload["components"] = Components.Value;
|
||||
if (ThreadName.IsSpecified)
|
||||
payload["thread_name"] = ThreadName.Value;
|
||||
if (AppliedTags.IsSpecified)
|
||||
payload["applied_tags"] = AppliedTags.Value;
|
||||
|
||||
var json = new StringBuilder();
|
||||
using (var text = new StringWriter(json))
|
||||
|
||||
Reference in New Issue
Block a user