toggle menu
kord
0.16.0-SNAPSHOT
common
switch theme
search in API
kord-common
/
dev.kord.common.entity
/
Choice
Choice
@
Serializable
(
with
=
Choice.Serializer::class
)
sealed
class
Choice
(
source
)
Inheritors
IntegerChoice
NumberChoice
StringChoice
Members
Types
Integer
Choice
Link copied to clipboard
data
class
IntegerChoice
(
val
name
:
String
,
val
nameLocalizations
:
Optional
<
Map
<
Locale
,
String
>
?
>
,
val
value
:
Long
)
:
Choice
Number
Choice
Link copied to clipboard
data
class
NumberChoice
(
val
name
:
String
,
val
nameLocalizations
:
Optional
<
Map
<
Locale
,
String
>
?
>
,
val
value
:
Double
)
:
Choice
String
Choice
Link copied to clipboard
data
class
StringChoice
(
val
name
:
String
,
val
nameLocalizations
:
Optional
<
Map
<
Locale
,
String
>
?
>
,
val
value
:
String
)
:
Choice
Properties
name
Link copied to clipboard
abstract
val
name
:
String
name
Localizations
Link copied to clipboard
abstract
val
nameLocalizations
:
Optional
<
Map
<
Locale
,
String
>
?
>
value
Link copied to clipboard
abstract
val
value
:
Any