Reviewed-on: sh-edraft.de/kd_discord_bot#280 Reviewed-by: edraft-dev <dev.sven.heidemann@sh-edraft.de> Closes #279
This commit is contained in:
commit
f75d8f2068
@ -36,9 +36,9 @@ class BaseReactionHandler:
|
|||||||
self._logger.trace(__name__, f"Handle reaction {payload} {r_type}")
|
self._logger.trace(__name__, f"Handle reaction {payload} {r_type}")
|
||||||
|
|
||||||
guild = self._bot.get_guild(payload.guild_id)
|
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:
|
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
|
return
|
||||||
|
|
||||||
try:
|
try:
|
||||||
|
Loading…
Reference in New Issue
Block a user