-
Notifications
You must be signed in to change notification settings - Fork 117
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
autocomplete broke up when there's another command having same name using rename macro #191
Comments
currently i renamed it "test-" temporally, really wish there's a better solution :( |
To make the slash and prefix implementation of a single command different, you're supposed to overwrite the Command.slash_action or Command.prefix_action fields instead of having two wholly separate commands. An example can be seen in one of my bots: However, I realize this is unintuitive, and documented nowhere whatsoever. Let's leave this issue open until documentation is better, or a more intuitive solution has been implemented (such as skipping commands with no autocomplete handler when dispatching an autocomplete event) |
overwrite the action work pretty well, really appreciate! |
Action plan should be:
PRs open, or else I may or may not get around doing it myself eventually |
for the first one, in order to have better way to document it, an idea I got is adding a some new method like |
I dislike how that obscures that "merging command" is just exchanging a single field. |
In my case, I want to make a command's prefix and slash seperately, like belowed
and the autocomplete wouldn't work, nor
or is there a better way to do what I trying to do?
thank you so much
The text was updated successfully, but these errors were encountered: