Commando icon indicating copy to clipboard operation
Commando copied to clipboard

Accessing previous arguments.

Open Harmiox opened this issue 7 years ago • 2 comments

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.

Harmiox avatar Jan 23 '18 04:01 Harmiox

I think your specific case is more of an user-side error. It should reported in the run method.

Telokis avatar Feb 11 '18 20:02 Telokis

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)

owm111 avatar Mar 21 '18 12:03 owm111