run

fun run(block: CommandContext.() -> Unit)

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

Parameters

block

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