singleChecks property

List<AbstractCheck> singleChecks
final

A list of checks that apply only to this command.

Since chat commands can double as a command group when using text only commands, developers might want to add checks that only apply to a command and not to its children. singleChecks is how to accomplish this, as they are applied to this command but not inherited by its children.

You might also be interested in:

  • singleCheck, for adding single checks to chat commands;
  • checks and check, the equivalent for inherited checks.

Implementation

final List<AbstractCheck> singleChecks = [];