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.setId
style
Style of text input, see TextInput.Builder.setStyle
uniqueId
Unique identifier of this component, see Component.withUniqueId
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