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