Table of Contents

Class DiscordTextInputComponent

Namespace
DSharpPlus.Entities
Assembly
DSharpPlus.dll

A text-input field. Like selects, this can only be used once per action row.

public sealed class DiscordTextInputComponent : DiscordComponent
Inheritance
DiscordTextInputComponent
Inherited Members

Constructors

DiscordTextInputComponent()
DiscordTextInputComponent(string, string, string?, string?, bool, DiscordTextInputStyle, int, int?)

Constructs a new text input field.

Properties

Label

Label text to put above this input.

MaximumLength

Optional maximum length for this input. Must be a positive integer, if set.

MinimumLength

Optional minimum length for this input.

Placeholder

Optional placeholder text for this input.

Required

Whether this input is required.

Style

Style of this input.

Value

Pre-filled value for this input.