feat!: move options to options
field and add command-specific options
#138
Labels
enhancement
New feature or request
options
field and add command-specific options
#138
Currently, every option is a field on the
Client
class.The new approach will have all the options in a separate field.
For example:
client.helpCommandLimit
New approach:
client.options.helpCommandLimit
I'm changing it like this for more clarity.
I also want to add a feature where you can override certain options for a specific command.
I'll add a new field to
Command
and one toCommandContext
to change and view the options respectively.And while we're at it, why not let an option be a function that takes the context and any more arguments that provide more information (or maybe put them on the context too?)
The text was updated successfully, but these errors were encountered: