Skip to content

Include subcommands in the command handler page #772

Open
@Hamburgergamer

Description

@Hamburgergamer

Problem:
Currently the command handler page is pretty similar to the old message command handler. I have the feeling, that there are some important aspects of slash commands, which are not covered in this guide. While the guide describes how to use multiple files for each commands, it explains nothing about how you should implement subcommands into your command handler. Do I need to put all subcommands from one command in one file? Is there a way to split them? These are just a few questions which I had in mind when I checked out the page. The examples also only show the parameters description: and name:. So for a beginner it is hard to know, if also the command options and defaultPermissions should be included in the command files. Furthermore I have the feeling that the content of the command handler section is sometimes a little bit contrary to the registering-slash-commands page. Can I store the data needed for registering the command data inside a command file or do I need to have it do it separately? Is there a way to include the registering of a command inside the command handler?
Overall I have the feeling, that the command handler page ignores some topics where new user would stumble on.

Solution:
Revise the command handler guide and include a section about how to include subcommands. In addition we could think about ways to include mechanics from other sections (Interactions) so it contains all possible hurdles, a developer could face when switching to slash commands.

Describe alternatives you've considered
If the requested content already exists on another page, we could add links to them in the command handler page, but I feel that this is more a general problem of the command handler page.

Additional notes
I did not have the time yet to work with slash commands by myself so I wasn't able to test any possible solutions. Therefore I decided to create a feature request first as some other users would also like to have more insights on the command handler.

Metadata

Metadata

Assignees

No one assigned

    Labels

    t: requestSuggestion to add new or change existing content

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions