mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-12-06 01:12:33 -05:00
Fix none issue (#5125)
This commit is contained in:
@@ -442,7 +442,7 @@ class Filter(commands.Cog):
|
||||
|
||||
@commands.Cog.listener()
|
||||
async def on_message(self, message: discord.Message):
|
||||
if isinstance(message.channel, discord.abc.PrivateChannel):
|
||||
if message.guild is None:
|
||||
return
|
||||
|
||||
if await self.bot.cog_disabled_in_guild(self, message.guild):
|
||||
|
||||
Reference in New Issue
Block a user