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

Vote Update #32

merged 1 commit into from
Sep 30, 2017

Conversation

DRSchlaubi
Copy link
Contributor

No description provided.

Reacts will now be removed after voting to anonymize the poll
@@ -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

@zekroTJA zekroTJA changed the base branch from master to dev September 28, 2017 21:09
@zekroTJA
Copy link
Collaborator

EDIT: Changed branch to Dev

@zekroTJA zekroTJA merged commit 94d49e8 into zekro-archive:dev Sep 30, 2017
This pull request was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants