Fixed reaction handling #287

This commit is contained in:
Sven Heidemann 2023-03-31 12:03:07 +02:00
parent 858fc062b3
commit f30bd119df

View File

@ -32,9 +32,9 @@ class AutoRoleReactionHandler:
return return
guild = self._bot.get_guild(payload.guild_id) 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: 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 return
if user.bot: if user.bot: