Aliases for slash commands? #2557
Paillat-dev
started this conversation in
Ideas
Replies: 5 comments 5 replies
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
-
I propose the exact wording for the second option to be " (i.e., , , ...)" |
Beta Was this translation helpful? Give feedback.
5 replies
-
Improving documentation on this could be part of the "docs rewamp" |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Feature Request
Having slash command aliases, meaning you can use multiple names for one slash command
Rationale
Multiple users have been asking about this, in the official server, as well as in other places. In my opinion, it feels weird for the end user no to have the possibility to use
aliases=
in slash commands. Notably, when switching to slash commands from prefixed, it is one lost feature, and NOT ONLY for the library user, but also for the related bot's end user, as their shortcuts and muscle memory will be lost in slash commands. Sometimes, aliases not only allow shorthand, but also completely different command names, and in both cases, autocompletion is not always enough.This would also allow for bette compatibility between slash and prefix with bridge (which is also being partially rewritten afaik) as the alias parameter would not be ignored by slash commands. This would feel more intuitive in my opinion.
I am a strong defender of slash commands, and often only use them, however, I myself feel like this feature is missing sometimes as well.
Implementation
Here are, after discussing with others, possible implementations, which are not exhaustive:
Literally duplication slash commands: this would create multiple identical slash commands (with the same callback) and a different name. It is nowhere the ideal solution, nor my favourite, but mention it nonetheless. While it would be the most ideal and intuitive solution, it would probably flood the slash command menu, and create unnecessary complexity for the end user.
Leveraging the command description autocomplete: This would insert the different aliases at the end of the slash command's description (i.e.
",".join(aliases)
). Since discord uses the command description for the autocompletion of the slash command menu, it would technically work, and the use would (most often) be proposed with the correct command for a given alias. It is less direct and "logical" than the first proposition, but doesn't have its downsides either, and is a good compromise in my opinionBoth?: This would literally be to give the use the choice for "real" and "fake" aliases and is more a troll proposition than anything imo but I put it anyways.
Challenges
Challenges not to overlook are the following
Beta Was this translation helpful? Give feedback.
All reactions