Browse Source

Merge branch 'release/3.x' of https://github.com/Discord-Net-Labs/Discord.Net-Labs into release/3.x

pull/1923/head
quin lynch 3 years ago
parent
commit
c908f1407f
2 changed files with 3 additions and 1 deletions
  1. +2
    -0
      src/Discord.Net.Rest/API/Rest/CreateWebhookMessageParams.cs
  2. +1
    -1
      src/Discord.Net.Rest/Entities/Interactions/ContextMenuCommands/UserCommands/RestUserCommand.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))


+ 1
- 1
src/Discord.Net.Rest/Entities/Interactions/ContextMenuCommands/UserCommands/RestUserCommand.cs View File

@@ -11,7 +11,7 @@ namespace Discord.Rest
/// <summary>
/// Represents a REST-based user command.
/// </summary>
internal class RestUserCommand : RestCommandBase, IUserCommandInteraction, IDiscordInteraction
public class RestUserCommand : RestCommandBase, IUserCommandInteraction, IDiscordInteraction
{
/// <summary>
/// Gets the data associated with this interaction.


Loading…
Cancel
Save