We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Command gets a new property: arguments Example:
client.commands.dice = { arguments: [ { // turns into <sides> name: "sides", required: true, }, { // turns into [...stuff] name: "stuff", required: false, rest: true, } ] }
I also have this idea to do some validation perhaps. (Sending a user things like missing command error...).
The text was updated successfully, but these errors were encountered:
Wait we should also do overloads for better clarity. How about we also allow this:
client.commands.random = { arguments: [ [ { name : "maximum", required: true, }, ], [ { name : "minimum", required: true, }, { name : "maximum", required: true, }, ], ], };
Which would turn into this in the help command:
!random <maximum> !random <minimum> <maximum>
Sorry, something went wrong.
No branches or pull requests
Command gets a new property: arguments
Example:
I also have this idea to do some validation perhaps. (Sending a user things like missing command error...).
The text was updated successfully, but these errors were encountered: