export declare class TextInputBuilder extends ComponentBuilder<APITextInputComponent> implements Equatable<JSONEncodable<APITextInputComponent> | APITextInputComponent>

Constructors

constructor()

Constructs a new instance of the TextInputBuilder class

readonly
data : Partial<DataType>

The API data associated with this component

Inherited from: ComponentBuilder

Whether or not this is equal to another structure

setCustomId(
customId: string
) : this

Sets the custom id for this text input

setLabel(
label: string
) : this

Sets the label for this text input

setMaxLength(
maxLength: number
) : this

Sets the maximum length of text for this text input

setMinLength(
minLength: number
) : this

Sets the minimum length of text for this text input

setPlaceholder(
placeholder: string
) : this

Sets the placeholder of this text input

setRequired(
required?: boolean
) : this

Sets whether this text input is required

setStyle() : this

Sets the style for this text input

setValue(
value: string
) : this

Sets the value of this text input

Serializes this component to an API-compatible JSON object