suspending Handler
fun <C : Any> Command.Builder<C>.suspendingHandler(scope: CoroutineScope = GlobalScope, context: CoroutineContext = EmptyCoroutineContext, handler: SuspendingExecutionHandler<C>): Command.Builder<C>
Content copied to clipboard
Specify a suspending command execution handler.
Return
modified copy of this Command.Builder
See also
cloud. commandframework. Command. Builder
Parameters
scope
coroutine scope
context
coroutine context
handler
suspending handler
fun <C : Any> MutableCommandBuilder<C>.suspendingHandler(scope: CoroutineScope = GlobalScope, context: CoroutineContext = EmptyCoroutineContext, handler: SuspendingExecutionHandler<C>): MutableCommandBuilder<C>
Content copied to clipboard
Specify a suspending command execution handler.
Return
this MutableCommandBuilder
See also
cloud. commandframework. kotlin. Mutable Command Builder
Parameters
scope
coroutine scope
context
coroutine context
handler
suspending handler