Better credits

This commit is contained in:
bobloy 2020-07-29 11:34:26 -04:00
parent d482b4914b
commit e1256d26a5

View File

@ -235,8 +235,11 @@ class CCRole(commands.Cog):
@commands.Cog.listener() @commands.Cog.listener()
async def on_message_without_command(self, message: discord.Message): async def on_message_without_command(self, message: discord.Message):
"""
"""Filtering credit to redbot.cogs.customcom's listener""" Credit to:
https://github.com/Cog-Creators/Red-DiscordBot/blob/V3/develop/redbot/cogs/customcom/customcom.py#L508
for the message filtering
"""
########### ###########
is_private = isinstance(message.channel, discord.abc.PrivateChannel) is_private = isinstance(message.channel, discord.abc.PrivateChannel)