Table of Contents

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 InteractionResponseType

The type of the response.

builder DiscordInteractionResponseBuilder

The data, if any, to send.

Returns

Task<DiscordInteractionCallbackResponse>

The created DiscordMessage, or null if type creates no content.