Table of Contents

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 string

The label for the field, placed above the input itself.

customId string

The ID of this field.

placeholder string

Placeholder text for the field.

value string

A pre-filled value for this field.

required bool

Whether this field is required.

style DiscordTextInputStyle

The style of this field. A single-ling short, or multi-line paragraph.

min_length int

The minimum input length.

max_length int?

The maximum input length. Must be greater than the minimum, if set.