From da02aca7e4462e1387ef0bdf88fe470694601c72 Mon Sep 17 00:00:00 2001 From: Sven Heidemann Date: Wed, 29 Mar 2023 14:52:36 +0200 Subject: [PATCH] Fixed reaction handling #279 --- kdb-bot/src/modules/base/helper/base_reaction_handler.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kdb-bot/src/modules/base/helper/base_reaction_handler.py b/kdb-bot/src/modules/base/helper/base_reaction_handler.py index 565dee6b..9fb4f89e 100644 --- a/kdb-bot/src/modules/base/helper/base_reaction_handler.py +++ b/kdb-bot/src/modules/base/helper/base_reaction_handler.py @@ -36,9 +36,9 @@ class BaseReactionHandler: self._logger.trace(__name__, f"Handle reaction {payload} {r_type}") guild = self._bot.get_guild(payload.guild_id) - member = guild.get_member(payload.id) + member = guild.get_member(payload.user_id) if member 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 try: