preCallHooks property
override
An iterable of callbacks executed before a command is executed but after all the checks for that command have succeeded.
These callbacks should be used to update this check's state.
You might also be interested in:
- CallHooked.onPreCall, for registering arbitrary callbacks to be executed before a command is executed but after all checks have succeeded;
- CommandsPlugin.onCommandError, where a CheckFailedException is added when a check for a command fails.
Implementation
@override
Iterable<void Function(CommandContext context)> get preCallHooks => [];