Commando
Commando copied to clipboard
Accessing previous arguments.
When running a validator function, it'd be really helpful to be able to access the values obtained from previous arguments. For example, let's say I have a command that fetches a message in a certain channel. The fist argument would be a text channel id and the second argument would be the message id to fetch, but i'm not able to access the text channel id from the previous argument in my validator function to make sure the message exists.
I think your specific case is more of an user-side error. It should reported in the run method.
This could be useful in cases such as when you want a command to run with only argument if it matches a certain regex, but to accept 2 arguments if it doesn't (if that makes any sense)