From f30bd119dfaf3fe7dfdc93ad50d54ef1d0d4a2cf Mon Sep 17 00:00:00 2001 From: Sven Heidemann Date: Fri, 31 Mar 2023 12:03:07 +0200 Subject: [PATCH] Fixed reaction handling #287 --- .../modules/auto_role/helper/auto_role_reaction_handler.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kdb-bot/src/modules/auto_role/helper/auto_role_reaction_handler.py b/kdb-bot/src/modules/auto_role/helper/auto_role_reaction_handler.py index a51d1f6c..47ab3778 100644 --- a/kdb-bot/src/modules/auto_role/helper/auto_role_reaction_handler.py +++ b/kdb-bot/src/modules/auto_role/helper/auto_role_reaction_handler.py @@ -32,9 +32,9 @@ class AutoRoleReactionHandler: return guild = self._bot.get_guild(payload.guild_id) - user = guild.get_member(payload.id) + user = guild.get_member(payload.user_id) if user is None: - self._logger.warn(__name__, f"User {payload.id} in {guild.name} not found - skipping") + self._logger.warn(__name__, f"User {payload.user_id} in {guild.name} not found - skipping") return if user.bot: