check

open fun check(vararg checks: ChatCommandCheck)

Define a check which must pass for the command to be executed.

A command may have multiple checks - all checks must pass for the command to be executed. Checks will be run in the order that they're defined.

This function can be used DSL-style with a given body, or it can be passed one or more predefined functions. See the samples for more information.

Parameters

checks

Checks to apply to this command.


open fun check(check: ChatCommandCheck)

Overloaded check function to allow for DSL syntax.

Parameters

check

Check to apply to this command.