Skip to content

Commit

Permalink
[Fun] Fix an issue with react on replies
Browse files Browse the repository at this point in the history
  • Loading branch information
TrustyJAID committed Oct 22, 2024
1 parent 6bdc84f commit 59d8f80
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fun/fun.py
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,7 @@ async def react(
reactions.append(f"{reactions.pop()}{VARIATION_CHAR}")

log.debug(reactions)
my_emojis = [r.emoji for r in message.reactions if r.me]
my_emojis = [getattr(r, "emoji") for r in getattr(message, "reactions", []) if r.me]
if message.channel.permissions_for(ctx.me).add_reactions and message is not None:
for reaction in reactions:
if reaction in my_emojis:
Expand Down

0 comments on commit 59d8f80

Please sign in to comment.