Browse Source

Fix Components not showing on FUWF (#288) (#293)

Adds Components to Payload JSON Generation
pull/1923/head
exsersewo GitHub 3 years ago
parent
commit
614a96be6e
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      src/Discord.Net.Rest/API/Rest/CreateWebhookMessageParams.cs

+ 2
- 0
src/Discord.Net.Rest/API/Rest/CreateWebhookMessageParams.cs View File

@@ -68,6 +68,8 @@ namespace Discord.API.Rest
payload["embeds"] = Embeds.Value;
if (AllowedMentions.IsSpecified)
payload["allowed_mentions"] = AllowedMentions.Value;
if (Components.IsSpecified)
payload["components"] = Components.Value;

var json = new StringBuilder();
using (var text = new StringWriter(json))


Loading…
Cancel
Save