Method AddTextInput
- Namespace
- DSharpPlus.Entities
- Assembly
- DSharpPlus.dll
AddTextInput(DiscordTextInputComponent, string, string?)
Adds a new text input to the modal.
public DiscordModalBuilder AddTextInput(DiscordTextInputComponent input, string label, string? description = null)
Parameters
input
DiscordTextInputComponentThe text input to add to this modal
label
stringA label text shown above the text input.
description
stringAn optional description for the text input.
Returns
- DiscordModalBuilder
The updated builder to chain calls with.