Validate arguments without triggering cooldown

Is there any way for me to validate arguments received in a text command without having the cooldown for that command triggered? Is there a method I can call to stop the code of that command (right now I am just throwing a custom error when the arguments are problematic) without the cooldown running all over again? Thanks!
1 Reply
Favna
Favna12mo ago
There is not. Preconditions, such as cooldown, always run before the messageRun of the command and so before parsing args. The only way you can achieve this is by not using the built-in cooldown precondition and not using it as a precondition at all but rather using simple if statements in your messageRun. Ultimately preconditions are glorified if checks after all. And once you have that just run return; when the user is on cooldown to do nothing.