toggle menu
kord-extensions
2.3.6-SNAPSHOT
jvm
switch theme
search in API
kord-extensions
/
dev.kordex.core.commands
/
OptionWrapper
Option
Wrapper
open
class
OptionWrapper
<
T
:
OptionsBuilder
>
constructor
(
var
displayName
:
Key
,
var
description
:
Key
,
val
body
:
suspend
T
.
(
)
->
Unit
,
val
type
:
KClass
<
T
>
)
Inheritors
ChoiceOptionWrapper
Members
Constructors
Option
Wrapper
Link copied to clipboard
constructor
(
displayName
:
Key
,
description
:
Key
,
body
:
suspend
T
.
(
)
->
Unit
,
type
:
KClass
<
T
>
)
Properties
body
Link copied to clipboard
val
body
:
suspend
T
.
(
)
->
Unit
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
T
.
(
)
->
Unit
>
type
Link copied to clipboard
val
type
:
KClass
<
T
>
Functions
apply
Link copied to clipboard
suspend
fun
apply
(
builder
:
T
)
:
T
modify
Link copied to clipboard
fun
modify
(
body
:
suspend
T
.
(
)
->
Unit
)
to
Kord
Link copied to clipboard
suspend
fun
toKord
(
)
:
OptionsBuilder