fix(text): Actually ignore unhandled msgs.

This commit is contained in:
2023-10-01 01:54:59 +03:00
parent 4828e7bf8b
commit 898738afe0

View File

@@ -223,6 +223,7 @@ class TextTrackerCog(LionCog):
channel.category_id channel.category_id
except discord.ClientException: except discord.ClientException:
logger.debug(f"Ignoring message from channel with no parent: {message.channel}") logger.debug(f"Ignoring message from channel with no parent: {message.channel}")
return
# Untracked channel ward # Untracked channel ward
untracked = self.untracked_channels.get(guildid, []) untracked = self.untracked_channels.get(guildid, [])