mirai
2.16.0
jvm
mirai-console
/
net.mamoe.mirai.console.command.parse
/
mapToTypeOrNull
map
To
Type
Or
Null
@
ExperimentalCommandDescriptors
fun
<
T
>
CommandValueArgument
.
mapToTypeOrNull
(
expectingType
:
KType
,
context
:
(
KType
,
Message
)
->
T
?
)
:
T
?