From d5c960096ecef17bcdfc6ba0fcf164183ef04ed7 Mon Sep 17 00:00:00 2001 From: Michael H Date: Fri, 1 May 2020 12:30:32 -0400 Subject: [PATCH] Modify CustomCommands to use `on_message_without_command` (#3811) --- redbot/cogs/customcom/customcom.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/redbot/cogs/customcom/customcom.py b/redbot/cogs/customcom/customcom.py index 3d28f9f6b..f237d2ec3 100644 --- a/redbot/cogs/customcom/customcom.py +++ b/redbot/cogs/customcom/customcom.py @@ -498,7 +498,7 @@ class CustomCommands(commands.Cog): await ctx.send(box(p, lang="yaml")) @commands.Cog.listener() - async def on_message(self, message): + async def on_message_without_command(self, message): is_private = isinstance(message.channel, discord.abc.PrivateChannel) # user_allowed check, will be replaced with self.bot.user_allowed or @@ -510,7 +510,7 @@ class CustomCommands(commands.Cog): ctx = await self.bot.get_context(message) - if ctx.prefix is None or ctx.valid: + if ctx.prefix is None: return try: