diskord
5.2.0
common
diskord-core
/
com.jessecorbett.diskord.api.common
/
TextInput
Text
Input
@
Serializable
data
class
TextInput
(
val
customId
:
String
,
val
disabled
:
Boolean
=
false
,
val
label
:
String
,
val
style
:
TextInputStyle
=
TextInputStyle.Short
,
val
placeholder
:
String
?
=
null
,
val
mindLength
:
Int
=
0
,
val
maxLength
:
Int
=
4000
,
val
required
:
Boolean
=
true
,
val
presetValue
:
String
?
=
null
)
:
MessageComponent
(
source
)
Members
Constructors
Text
Input
Link copied to clipboard
constructor
(
customId
:
String
,
disabled
:
Boolean
=
false
,
label
:
String
,
style
:
TextInputStyle
=
TextInputStyle.Short
,
placeholder
:
String
?
=
null
,
mindLength
:
Int
=
0
,
maxLength
:
Int
=
4000
,
required
:
Boolean
=
true
,
presetValue
:
String
?
=
null
)
Properties
custom
Id
Link copied to clipboard
@
SerialName
(
value
=
"custom_id"
)
val
customId
:
String
disabled
Link copied to clipboard
@
SerialName
(
value
=
"disabled"
)
val
disabled
:
Boolean
=
false
label
Link copied to clipboard
@
SerialName
(
value
=
"label"
)
val
label
:
String
max
Length
Link copied to clipboard
@
SerialName
(
value
=
"max_length"
)
val
maxLength
:
Int
=
4000
mind
Length
Link copied to clipboard
@
SerialName
(
value
=
"min_length"
)
val
mindLength
:
Int
=
0
placeholder
Link copied to clipboard
@
SerialName
(
value
=
"placeholder"
)
val
placeholder
:
String
?
=
null
preset
Value
Link copied to clipboard
@
SerialName
(
value
=
"value"
)
val
presetValue
:
String
?
=
null
required
Link copied to clipboard
@
SerialName
(
value
=
"required"
)
val
required
:
Boolean
=
true
style
Link copied to clipboard
@
SerialName
(
value
=
"style"
)
val
style
:
TextInputStyle
type
Link copied to clipboard
open
override
val
type
:
Int
=
4