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
DiscordInteractionResponseBuilderBuilder which is used to build the modal.
Returns
Exceptions
- InvalidOperationException
Thrown when the interaction response state is not Unacknowledged
- ArgumentException
Thrown when the response builder is not valid