Browse Source

Fix ephemeral command differs (#128)

pull/1923/head
CottageDwellingCat GitHub 4 years ago
parent
commit
755f3c05c1
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions
  1. +4
    -0
      src/Discord.Net.WebSocket/Entities/Interaction/SocketBaseCommand/SocketCommandBase.cs

+ 4
- 0
src/Discord.Net.WebSocket/Entities/Interaction/SocketBaseCommand/SocketCommandBase.cs View File

@@ -157,6 +157,10 @@ namespace Discord.WebSocket
var response = new API.InteractionResponse
{
Type = InteractionResponseType.DeferredChannelMessageWithSource,
Data = new API.InteractionCallbackData
{
Flags = ephemeral ? MessageFlags.Ephemeral : Optional<MessageFlags>.Unspecified
}
};

return Discord.Rest.ApiClient.CreateInteractionResponse(response, this.Id, this.Token, options);


Loading…
Cancel
Save