toggle menu
kord-extensions
2.3.6-SNAPSHOT
jvm
switch theme
search in API
kord-extensions
/
dev.kordex.core.commands
/
ChoiceOptionWrapper
Choice
Option
Wrapper
sealed
class
ChoiceOptionWrapper
<
B
:
BaseChoiceBuilder
<
*
,
*
>
,
T
>
:
OptionWrapper
<
B
>
Inheritors
Integer
Number
String
Members
Types
Choice
Wrapper
Link copied to clipboard
inner
class
ChoiceWrapper
(
val
name
:
Key
,
val
value
:
T
)
Integer
Link copied to clipboard
class
Integer
constructor
(
displayName
:
Key
,
description
:
Key
,
body
:
suspend
IntegerOptionBuilder
.
(
)
->
Unit
)
:
ChoiceOptionWrapper
<
IntegerOptionBuilder
,
Long
>
Number
Link copied to clipboard
class
Number
constructor
(
displayName
:
Key
,
description
:
Key
,
body
:
suspend
NumberOptionBuilder
.
(
)
->
Unit
)
:
ChoiceOptionWrapper
<
NumberOptionBuilder
,
Double
>
String
Link copied to clipboard
class
String
constructor
(
displayName
:
Key
,
description
:
Key
,
body
:
suspend
StringChoiceBuilder
.
(
)
->
Unit
)
:
ChoiceOptionWrapper
<
StringChoiceBuilder
,
String
>
Properties
body
Link copied to clipboard
val
body
:
suspend
B
.
(
)
->
Unit
choices
Link copied to clipboard
val
choices
:
MutableList
<
ChoiceOptionWrapper.ChoiceWrapper
<
B
,
T
>
>
description
Link copied to clipboard
var
description
:
Key
display
Name
Link copied to clipboard
var
displayName
:
Key
modifiers
Link copied to clipboard
val
modifiers
:
MutableList
<
suspend
B
.
(
)
->
Unit
>
type
Link copied to clipboard
val
type
:
KClass
<
B
>
Functions
apply
Link copied to clipboard
suspend
fun
apply
(
builder
:
B
)
:
B
choice
Link copied to clipboard
fun
choice
(
name
:
Key
,
value
:
T
)
modify
Link copied to clipboard
fun
modify
(
body
:
suspend
B
.
(
)
->
Unit
)
to
Kord
Link copied to clipboard
suspend
fun
toKord
(
)
:
OptionsBuilder