Skip to content

feat!: move options to options field and add command-specific options #138

@NanderTGA

Description

@NanderTGA

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 to CommandContext 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?)

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    Status

    Todo

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions