Reviewed-on: sh-edraft.de/kd_discord_bot#319
This commit is contained in:
commit
0ca3be478b
@ -47,6 +47,10 @@ class BaseReactionHandler:
|
|||||||
log_msg += f" with {payload.emoji.name}"
|
log_msg += f" with {payload.emoji.name}"
|
||||||
try:
|
try:
|
||||||
channel = guild.get_channel(payload.channel_id)
|
channel = guild.get_channel(payload.channel_id)
|
||||||
|
if channel is None:
|
||||||
|
self._logger.warn(__name__, f"Channel not found")
|
||||||
|
return
|
||||||
|
|
||||||
message = await channel.fetch_message(payload.message_id)
|
message = await channel.fetch_message(payload.message_id)
|
||||||
self._logger.info(
|
self._logger.info(
|
||||||
__name__,
|
__name__,
|
||||||
|
Loading…
Reference in New Issue
Block a user