TextInputBuilder
TextInputBuilder is used to construct a text input component for a Discord message.
Properties
Style
TextInputBuilder.Style :: table
An enumeration of text input styles.
- Short: 1
- Paragraph: 2
Methods
setStyle
TextInputBuilder : setStyle () -> Builders.Interface.TextInputBuilder
inputStyle: number
Sets the style of the text input.
setLabel
TextInputBuilder : setLabel () -> Builders.Interface.TextInputBuilder
label: string
Sets the label of the text input.
setMinLength
TextInputBuilder : setMinLength () -> Builders.Interface.TextInputBuilder
length: number
Sets the minimum length of the text input.
setMaxLength
TextInputBuilder : setMaxLength () -> Builders.Interface.TextInputBuilder
length: number
Sets the maximum length of the text input.
setRequired
TextInputBuilder : setRequired () -> Builders.Interface.TextInputBuilder
isRequired: boolean
Sets whether the text input is required.
setDefaultValue
TextInputBuilder : setDefaultValue () -> Builders.Interface.TextInputBuilder
value: string
Sets the default value of the text input.
setPlaceholder
TextInputBuilder : setPlaceholder () -> Builders.Interface.TextInputBuilder
value: string
Sets the placeholder value of the text input.
toPayloadObject
TextInputBuilder : toPayloadObject () -> Network.Resolvable
Converts the text input to a JSON object that can be sent to the Discord API.
Functions
new
TextInputBuilder . new () -> ()
textInputId: string
Creates a new instance of TextInputBuilder.