From cd62146e9a6cd8ea8fc6c215c2541c51d85a53fc Mon Sep 17 00:00:00 2001 From: Conatum Date: Mon, 24 Jan 2022 07:06:28 +0200 Subject: [PATCH] fix (rroles): Don't assume member in event. --- bot/modules/guild_admin/reaction_roles/tracker.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bot/modules/guild_admin/reaction_roles/tracker.py b/bot/modules/guild_admin/reaction_roles/tracker.py index d841d3e5..c767547b 100644 --- a/bot/modules/guild_admin/reaction_roles/tracker.py +++ b/bot/modules/guild_admin/reaction_roles/tracker.py @@ -548,7 +548,7 @@ class ReactionRoleMessage: @client.add_after_event('raw_reaction_add') async def reaction_role_add(client, payload): reaction_message = ReactionRoleMessage.fetch(payload.message_id) - if payload.guild_id and not payload.member.bot and reaction_message and reaction_message.enabled: + if payload.guild_id and payload.user_id != client.user.id and reaction_message and reaction_message.enabled: try: await reaction_message.process_raw_reaction_add(payload) except Exception: