We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0f5c9fe commit 9becab3Copy full SHA for 9becab3
src/handler/reaction/pollReactionHandler.ts
@@ -43,7 +43,13 @@ export default {
43
}
44
45
if (VOTE_EMOJIS.includes(reactionName)) {
46
- // this is a .vote poll -> TODO
+ // this is a .vote poll -> remove other vote reactions from the user
47
+ const messageReactions = message.reactions.cache;
48
+ for (const [emojiName, reaction] of messageReactions) {
49
+ if (VOTE_EMOJIS.includes(emojiName) && emojiName !== reactionName) {
50
+ await reaction.users.remove(invoker.id);
51
+ }
52
53
return;
54
55
0 commit comments