Constructor DiscordTextInputComponent
- Namespace
- DSharpPlus.Entities
- Assembly
- DSharpPlus.dll
DiscordTextInputComponent()
public DiscordTextInputComponent()
DiscordTextInputComponent(string, string?, string?, bool, DiscordTextInputStyle, int, int?)
Constructs a new text input field.
public DiscordTextInputComponent(string customId, string? placeholder = null, string? value = null, bool required = true, DiscordTextInputStyle style = DiscordTextInputStyle.Short, int min_length = 0, int? max_length = null)
Parameters
customIdstringThe ID of this field.
placeholderstringPlaceholder text for the field.
valuestringA pre-filled value for this field.
requiredboolWhether this field is required.
styleDiscordTextInputStyleThe style of this field. A single-ling short, or multi-line paragraph.
min_lengthintThe minimum input length.
max_lengthint?The maximum input length. Must be greater than the minimum, if set.