Method RespondWithModalAsync
- Namespace
- DSharpPlus.Commands.Processors.SlashCommands
- Assembly
- DSharpPlus.Commands.dll
RespondWithModalAsync(DiscordModalBuilder)
Respond to the command with a Modal.
public ValueTask RespondWithModalAsync(DiscordModalBuilder builder)Parameters
- builderDiscordModalBuilder
- Builder 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