Fehlerhaftes logging und reaction error (#65) #66

Merged
edraft merged 2 commits from #65 into master 2022-10-06 16:56:54 +02:00
Showing only changes of commit 523eb23f09 - Show all commits

View File

@ -34,7 +34,11 @@ class ReactionHandler:
return
guild = self._bot.get_guild(payload.guild_id)
user = await guild.fetch_member(payload.user_id)
user = guild.get_member(payload.user_id)
if user is None:
self._logger.warn(__name__, f'User {payload.user_id} in {guild.name} not found - skipping')
return
if user.bot:
self._logger.debug(__name__, f'User is bot - skipping')
return