1
Fork 0
mirror of https://github.com/allthingslinux/tux.git synced 2024-10-02 16:43:12 +00:00

note(poll.py) address note (see commit desc)

this is just part of discord rate limiting, at the end of the day the reactions are still removed
This commit is contained in:
electron271 2024-09-26 20:37:00 -05:00 committed by GitHub
parent 887ad4710f
commit 83b028b5b8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -52,8 +52,6 @@ class Poll(commands.Cog):
@commands.Cog.listener()
async def on_reaction_add(self, reaction: discord.Reaction, user: discord.User) -> None:
# Block any reactions that are not numbers for the poll
# NOTE: Today we observed in amazing detail that the pure will of 1 too many dedicated discord members can make
# the bot freak out whenever trying to remove reactions. Is there a better solution for this?
if reaction.message.embeds:
embed = reaction.message.embeds[0]
if (