validate

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

Defines validation logic to be executed before the command is run.

Parameters

block

The block of validation logic to execute.