Skip to content
This repository has been archived by the owner on Oct 18, 2021. It is now read-only.

Vote Update #32

Merged
merged 1 commit into from
Sep 30, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/main/java/commands/chat/Vote3.java
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,7 @@ public static void handleReaction(MessageReactionAddEvent event) {
if (reactions.contains(event.getReaction().getEmote().getName())) {
System.out.println("TEST 4");
addVote(guild, event.getMember(), reactions.indexOf(event.getReaction().getEmote().getName()) + 1);
event.getReaction().removeReaction(event.getUser()).queue();
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Das geht (mittlerweile?)?
Hatte das früher in meinen Tests so drin und da hat er alle Reactions, also den ganzen Stack + die ursprünglche vom Bot gelöscht.
Ist das jetzt anders?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

removeReaction(event.getUser()) da hier der User übergeben wird wird nur die Reaction vom User gelöscht

}
}

Expand Down