Reviewed-on: sh-edraft.de/kd_discord_bot#288 Closes #287
This commit is contained in:
commit
72d3ccded3
@ -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:
|
||||||
|
Loading…
Reference in New Issue
Block a user