Skip to content

Create a Command class  #4

@jaARke

Description

@jaARke

Using a class to define commands, rather than functions, will likely make it easier for users to define their own commands. Custom commands could extend this class or use decorators to invoke a higher-tier function responsible for adding each command to the CommandRegistry. Further, this organization would more closely resemble that of the slash-create library.

Command objects should hold information including:

  • Command name
  • Command description
  • Command inputs
  • Subcommand membership
  • Function to be run when the command is invoked (run() or something similar)

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions