Method CreateResponseAsync
- Namespace
- DisCatSharp.Entities
- Assembly
- DisCatSharp.dll
CreateResponseAsync(InteractionResponseType, DiscordInteractionResponseBuilder?)
Creates a response to this interaction.
public Task<DiscordInteractionCallbackResponse> CreateResponseAsync(InteractionResponseType type, DiscordInteractionResponseBuilder? builder = null)
Parameters
type
InteractionResponseTypeThe type of the response.
builder
DiscordInteractionResponseBuilderThe data, if any, to send.
Returns
- Task<DiscordInteractionCallbackResponse>
The created DiscordMessage, or null if
type
creates no content.