Skip to content

Commit 3913122

Browse files
committed
fix(poll): change reaction removal to clear for faster removal
1 parent 961147a commit 3913122

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tux/cogs/utility/poll.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +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)
84+
await reaction.clear()
8585

8686
@app_commands.command(name="poll", description="Creates a poll.")
8787
@app_commands.describe(title="Title of the poll", options="Poll options, comma separated")

0 commit comments

Comments
 (0)