suspendingHandler

fun <C : Any> Command.Builder<C>.suspendingHandler(scope: CoroutineScope = GlobalScope, context: CoroutineContext = EmptyCoroutineContext, handler: SuspendingExecutionHandler<C>): Command.Builder<C>

Specify a suspending command execution handler.

Return

modified copy of this Command.Builder

See also

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>

Specify a suspending command execution handler.

Return

this MutableCommandBuilder

See also

cloud.commandframework.kotlin.MutableCommandBuilder

Parameters

scope

coroutine scope

context

coroutine context

handler

suspending handler