Table of Contents

Method CreateResponseAsync

Namespace
DisCatSharp.Entities
Assembly
DisCatSharp.dll

CreateResponseAsync(InteractionResponseType, DiscordInteractionResponseBuilder?, ModifyMode)

Creates a response to this interaction.

public Task<DiscordInteractionCallbackResponse> CreateResponseAsync(InteractionResponseType type, DiscordInteractionResponseBuilder? builder = null, ModifyMode modifyMode = ModifyMode.Update)

Parameters

type InteractionResponseType

The type of the response.

builder DiscordInteractionResponseBuilder

The data, if any, to send.

modifyMode ModifyMode

The modify mode. Only useful for UpdateMessage.

Returns

Task<DiscordInteractionCallbackResponse>

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