From b5baa95d9a5480e62f4304cc769d6ef5888375de Mon Sep 17 00:00:00 2001 From: d4n Date: Sun, 21 Nov 2021 14:34:46 -0500 Subject: [PATCH 1/2] Make RestUserCommand public (#292) --- .../ContextMenuCommands/UserCommands/RestUserCommand.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Discord.Net.Rest/Entities/Interactions/ContextMenuCommands/UserCommands/RestUserCommand.cs b/src/Discord.Net.Rest/Entities/Interactions/ContextMenuCommands/UserCommands/RestUserCommand.cs index 52466debf..58f1ed375 100644 --- a/src/Discord.Net.Rest/Entities/Interactions/ContextMenuCommands/UserCommands/RestUserCommand.cs +++ b/src/Discord.Net.Rest/Entities/Interactions/ContextMenuCommands/UserCommands/RestUserCommand.cs @@ -11,7 +11,7 @@ namespace Discord.Rest /// /// Represents a REST-based user command. /// - internal class RestUserCommand : RestCommandBase, IUserCommandInteraction, IDiscordInteraction + public class RestUserCommand : RestCommandBase, IUserCommandInteraction, IDiscordInteraction { /// /// Gets the data associated with this interaction. From 614a96be6e19cea8ec7cc56fe388dd45c374cebf Mon Sep 17 00:00:00 2001 From: exsersewo Date: Sun, 21 Nov 2021 19:35:37 +0000 Subject: [PATCH 2/2] Fix Components not showing on FUWF (#288) (#293) Adds Components to Payload JSON Generation --- src/Discord.Net.Rest/API/Rest/CreateWebhookMessageParams.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Discord.Net.Rest/API/Rest/CreateWebhookMessageParams.cs b/src/Discord.Net.Rest/API/Rest/CreateWebhookMessageParams.cs index aea4b9538..bda0f7ff1 100644 --- a/src/Discord.Net.Rest/API/Rest/CreateWebhookMessageParams.cs +++ b/src/Discord.Net.Rest/API/Rest/CreateWebhookMessageParams.cs @@ -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))