added a debug message to see if the reaction listener works even if the reaction doesn’t get added
parent
d59774b0c2
commit
4222046c20
|
@ -26,6 +26,7 @@ public class QuizHandler {
|
||||||
+ "Select the :white_check_mark: reaction to continue.").get();
|
+ "Select the :white_check_mark: reaction to continue.").get();
|
||||||
message.addReaction(EmojiParser.parseToUnicode(":white_check_mark:"));
|
message.addReaction(EmojiParser.parseToUnicode(":white_check_mark:"));
|
||||||
message.addReactionAddListener(event -> {
|
message.addReactionAddListener(event -> {
|
||||||
|
System.err.println("Received a reaction");
|
||||||
if (event.getReaction().get().getEmoji().equalsEmoji(EmojiParser.parseToUnicode(":white_check_mark:"))) {
|
if (event.getReaction().get().getEmoji().equalsEmoji(EmojiParser.parseToUnicode(":white_check_mark:"))) {
|
||||||
event.getMessage().get().getChannel().sendMessage("test");
|
event.getMessage().get().getChannel().sendMessage("test");
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue