TextInputBuilder

class TextInputBuilder(var style: TextInputStyle, var customId: String, var label: String) : ActionRowComponentBuilder(source)

A builder for a Discord Text Input.

Parameters

style

The style of the input.

customId

The identifier for the input, max 100 characters.

label

The label for this component, max 45 characters.

Constructors

Link copied to clipboard
constructor(style: TextInputStyle, customId: String, label: String)

Properties

Link copied to clipboard

The range of lengths that can be accepted. Accepts any range between 0,4000.

Link copied to clipboard
Link copied to clipboard

Whether the component is disabled. Defaults to false.

Link copied to clipboard
Link copied to clipboard

Custom placeholder if no value is selected, max 100 characters.

Link copied to clipboard

Whether this component is required to be filled, default true.

Link copied to clipboard
Link copied to clipboard

A pre-filled value for this component, max 4000 characters.

Functions

Link copied to clipboard
open override fun build(): DiscordTextInputComponent