added a debug message to see if the reaction listener works even if the reaction doesn’t get added

master
BodgeMaster 2022-02-22 20:03:32 +01:00
parent d59774b0c2
commit 4222046c20
1 changed files with 1 additions and 0 deletions

View File

@ -26,6 +26,7 @@ public class QuizHandler {
+ "Select the :white_check_mark: reaction to continue.").get();
message.addReaction(EmojiParser.parseToUnicode(":white_check_mark:"));
message.addReactionAddListener(event -> {
System.err.println("Received a reaction");
if (event.getReaction().get().getEmoji().equalsEmoji(EmojiParser.parseToUnicode(":white_check_mark:"))) {
event.getMessage().get().getChannel().sendMessage("test");
}