Constructor DiscordTextInputComponent
- Namespace
- DSharpPlus.Entities
- Assembly
- DSharpPlus.dll
DiscordTextInputComponent()
public DiscordTextInputComponent()
DiscordTextInputComponent(string, string, string?, string?, bool, DiscordTextInputStyle, int, int?)
Constructs a new text input field.
public DiscordTextInputComponent(string label, string customId, string? placeholder = null, string? value = null, bool required = true, DiscordTextInputStyle style = DiscordTextInputStyle.Short, int min_length = 0, int? max_length = null)
Parameters
label
stringThe label for the field, placed above the input itself.
customId
stringThe ID of this field.
placeholder
stringPlaceholder text for the field.
value
stringA pre-filled value for this field.
required
boolWhether this field is required.
style
DiscordTextInputStyleThe style of this field. A single-ling short, or multi-line paragraph.
min_length
intThe minimum input length.
max_length
int?The maximum input length. Must be greater than the minimum, if set.