Skip to content

Commit

Permalink
check for case where there is no existing reaction
Browse files Browse the repository at this point in the history
  • Loading branch information
auburnsummer committed Oct 8, 2024
1 parent 9783af9 commit 07c5d57
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions orchard/bot/handlers/interactions/commands/reactx.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ async def _reactx(body, _):
for key, value in messages.items():
message_id = value["id"]
for reaction in number_reactions:
if "reactions" not in value:
continue
if reaction not in [
react["emoji"]["name"] for react in value["reactions"]
]:
Expand Down

0 comments on commit 07c5d57

Please sign in to comment.