requires

fun requires(predicate: (source: Source) -> Boolean): CommandBuilder<Source, Builder, Node>(source)

Specifies that the given predicate must return true for the Source in order for it to be able to execute this part of the command tree. Use this function on the root command node to secure the whole command.