File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed
src/main/java/org/mangorage/mangobotplugin Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change 11package org .mangorage .mangobotplugin ;
22
33import net .dv8tion .jda .api .events .interaction .ModalInteractionEvent ;
4+ import net .dv8tion .jda .api .events .interaction .command .CommandAutoCompleteInteractionEvent ;
45import net .dv8tion .jda .api .events .interaction .command .SlashCommandInteractionEvent ;
56import net .dv8tion .jda .api .events .interaction .component .ButtonInteractionEvent ;
67import net .dv8tion .jda .api .events .message .MessageReceivedEvent ;
@@ -25,6 +26,12 @@ public void onInteraction(SlashCommandInteractionEvent event) {
2526 WatcherManager .onCommandEvent (event );
2627 }
2728
29+ @ SubscribeEvent
30+ public void onSlashAuto (CommandAutoCompleteInteractionEvent event ) {
31+ WatcherManager .onCommandAutoCompleteEvent (event );
32+ }
33+
34+
2835 @ SubscribeEvent
2936 public void onModalInteract (ModalInteractionEvent event ) {
3037 DiscordModalInteractionEvent .BUS .post (new DiscordModalInteractionEvent (event ));
You can’t perform that action at this time.
0 commit comments