File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed
src/main/java/org/mangorage/mangobotplugin Expand file tree Collapse file tree 1 file changed +6
-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 .SlashCommandInteractionEvent ;
45import net .dv8tion .jda .api .events .interaction .component .ButtonInteractionEvent ;
56import net .dv8tion .jda .api .events .message .MessageReceivedEvent ;
67import net .dv8tion .jda .api .events .message .react .MessageReactionAddEvent ;
78import net .dv8tion .jda .api .hooks .SubscribeEvent ;
9+ import org .mangorage .commonutils .jda .slash .command .watcher .WatcherManager ;
810import org .mangorage .mangobotcore .jda .event .DiscordButtonInteractEvent ;
911import org .mangorage .mangobotcore .jda .event .DiscordMessageReactionAddEvent ;
1012import org .mangorage .mangobotcore .jda .event .DiscordMessageReceivedEvent ;
@@ -18,6 +20,10 @@ public BotEventListener(MangoBot mangoBot) {
1820 this .mangoBot = mangoBot ;
1921 }
2022
23+ @ SubscribeEvent
24+ public void onInteraction (SlashCommandInteractionEvent event ) {
25+ WatcherManager .onCommandEvent (event );
26+ }
2127
2228 @ SubscribeEvent
2329 public void onModalInteract (ModalInteractionEvent event ) {
You can’t perform that action at this time.
0 commit comments