TextInput

inline fun TextInput(customId: String, style: TextInputStyle, uniqueId: Int = -1, isRequired: Boolean = true, range: IntRange? = null, value: String? = null, placeholder: String? = null, block: InlineTextInput.() -> Unit = {}): TextInput(source)

Discord text input, see TextInput.

Parameters

customId

The custom ID of the input, see TextInput.Builder.setCustomId

style

Style of text input, see TextInput.Builder.setStyle

uniqueId

Unique identifier of this component, see Component.withUniqueId

isRequired

Whether the user is required to write in this TextInput, see TextInput.Builder.setRequired

range

Minimum and maximum required length of this TextInput, see TextInput.Builder.setRequiredRange

value

Pre-populated text for this TextInput field, see TextInput.Builder.setValue

placeholder

Short hint that describes the expected value of the input field, see TextInput.Builder.setPlaceholder

block

Lambda allowing further configuration