Table of Contents

Method RespondWithModalAsync

Namespace
DSharpPlus.Commands.Processors.SlashCommands
Assembly
DSharpPlus.Commands.dll

RespondWithModalAsync(DiscordInteractionResponseBuilder)

Respond to the command with a Modal.

public ValueTask RespondWithModalAsync(DiscordInteractionResponseBuilder builder)

Parameters

builder DiscordInteractionResponseBuilder

Builder which is used to build the modal.

Returns

ValueTask

Exceptions

InvalidOperationException

Thrown when the interaction response state is not Unacknowledged

ArgumentException

Thrown when the response builder is not valid