runAsync

fun runAsync(block: suspend CommandContext.() -> Unit)

Specifies an asynchronous block of code to be executed when the command is run.

Parameters

block

The asynchronous block of code to run when the command is executed.