Added reaction channel null check #318 #319

Merged
edraft merged 1 commits from #318 into 1.1.0 2023-06-08 08:48:31 +02:00

View File

@ -47,6 +47,10 @@ class BaseReactionHandler:
log_msg += f" with {payload.emoji.name}"
try:
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)
self._logger.info(
__name__,