Skip to content

proper subcommand (and more?) functionality #263

@nyapat

Description

@nyapat

i think subcommands can clean up our code and UX

/editname
/removename
-> /name edit , /name remove
/blacklist
/blacklistguild (todo)
-> /blacklist user , /blacklist guild
/config...
-> /config ...

  1. is this a good idea?
  2. currently, we use ICommandInfo when creating a command
  • can we just remove this? it doesn't seem that useful, and doesn't currently support subcommands, i don't think we should have to add another part to this every time discord adds something to commands (or a feature we missed). solution I have in mind is just pass a slashcommandbuilder through super as a required property (as well as whatever i don't want to change, such as the permission checks)
  • can we just remove the /help command since slash commands show all needed information when using it?

Metadata

Metadata

Assignees

No one assigned

    Labels

    c-internalCategory: Internal implementation (e.g., library changes)it-enhancementIssue Type: Enhancement (new feature or request)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions