sapphiredev/framework

request: Arguments in command constructor

DemonWayne opened this issue · 1 comments

Is there an existing issue or pull request for this?

  • I have searched the existing issues and pull requests

Feature description

I suggest adding a listener or something similar that will check for arguments that will fit in the command constructor.

Desired solution

Add arguments to the command constructor and either add a listener or extend the error to commandError.
Variant of what the arguments in the command will look like:
arguments: {
member: {
type: 'Member',
required: true,
},
duration: {
type: 'Number',
required: true,
},
},

Alternatives considered

no

Additional context

No response

We won't be doing that, as we already have a very flexible (and powerful) system for arguments: https://www.sapphirejs.dev/docs/Guide/arguments/using-arguments

However, if this doesn't work for you, please follow up with why and what we can improve on the existing args system to help you out 👍