Merge pull request 'Fixed reaction handling #287' (#288) from 1.0.4 into master

Reviewed-on: sh-edraft.de/kd_discord_bot#288
Closes #287
This commit is contained in:
Sven Heidemann 2023-03-31 12:04:09 +02:00
commit 72d3ccded3

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: