-
-
Notifications
You must be signed in to change notification settings - Fork 24
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
Slash command support #1
Conversation
command/src/main/java/com/jagrosh/jdautilities/command/SlashCommand.java
Outdated
Show resolved
Hide resolved
command/src/main/java/com/jagrosh/jdautilities/command/SlashCommand.java
Outdated
Show resolved
Hide resolved
@@ -607,6 +674,25 @@ else if(event.isFromType(ChannelType.PRIVATE) || event.getTextChannel().canTalk( | |||
listener.onNonCommandMessage(event); | |||
} | |||
|
|||
private void onSlashCommand(SlashCommandEvent event) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
private void onSlashCommand(SlashCommandEvent event) | |
@Override | |
private void onSlashCommand(SlashCommandEvent event) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The overrides only appear to apply when you extend ListenerAdapter, not EventListener that CommandClientImpl does 🤔 I can't exactly tell why or what benefits it has not doing it
Wrong button |
Did this just not get copied over? Now I'm questioning everything...
Any final thoughts @Andre601 or is this good to go? |
Don't ask me |
THE CHUNKIEST PATCH IN EXISTENCE.
This adds support for Slash Commands. Phew!
Currently, this uses JDA's
feature/slash-commands
branch so this will be put on this repo'sfeature/slash-commands
.There's still a bit more to do, but it's pretty much done.
If you would like to test, you need to switch to my m2 repo:
Check the wiki for migration guide.