Table of Contents

Method CreateResponseAsync

Namespace
DisCatSharp.ApplicationCommands.Context
Assembly
DisCatSharp.ApplicationCommands.dll

CreateResponseAsync(InteractionResponseType, DiscordInteractionResponseBuilder)

Creates a response to this interaction.

You must create a response within 3 seconds of this interaction being executed; if the command has the potential to take more than 3 seconds, create a DeferredChannelMessageWithSource at the start, and edit the response later.

public Task CreateResponseAsync(InteractionResponseType type, DiscordInteractionResponseBuilder builder = null)

Parameters

type InteractionResponseType

The type of the response.

builder DiscordInteractionResponseBuilder

The data to be sent, if any.

Returns

Task