builders

TextInputBuilder

export declare class TextInputBuilder extends ComponentBuilder<APITextInputComponent> 

Summary

No summary provided.

Methods

equals(other)

:

boolean

NameTypeOptionalDescription
otherJSONEncodable<APITextInputComponent> | APITextInputComponentNoNone

setCustomId(customId)

:

this

Sets the custom id for this text input

NameTypeOptionalDescription
customIdstringNoNone

setLabel(label)

:

this

Sets the label for this text input

NameTypeOptionalDescription
labelstringNoNone

setMaxLength(maxLength)

:

this

Sets the maximum length of text for this text input

NameTypeOptionalDescription
maxLengthnumberNoNone

setMinLength(minLength)

:

this

Sets the minimum length of text for this text input

NameTypeOptionalDescription
minLengthnumberNoNone

setPlaceholder(placeholder)

:

this

Sets the placeholder of this text input

NameTypeOptionalDescription
placeholderstringNoNone

setRequired(required)

:

this

Sets whether this text input is required

NameTypeOptionalDescription
requiredbooleanYesNone

setStyle(style)

:

this

Sets the style for this text input

NameTypeOptionalDescription
styleTextInputStyleNoNone

setValue(value)

:

this

Sets the value of this text input

NameTypeOptionalDescription
valuestringNoNone

builders