Skip to content

Commit fc64eae

Browse files
committed
fix(poll): remove user reaction if it doesn't meet poll criteria
1 parent 555e0e0 commit fc64eae

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tux/cogs/utility/poll.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@ async def on_reaction_add(self, reaction: discord.Reaction, user: discord.User)
8181
and embed.author.name.startswith("Poll")
8282
and reaction.emoji not in [f"{num + 1}\u20e3" for num in range(9)]
8383
):
84+
await reaction.remove(user)
8485
await reaction.clear()
8586

8687
@app_commands.command(name="poll", description="Creates a poll.")

0 commit comments

Comments
 (0)