From 55a3d9b157bd48550d162eda90fd0ec5174e9b24 Mon Sep 17 00:00:00 2001 From: jack1142 <6032823+jack1142@users.noreply.github.com> Date: Thu, 9 Apr 2020 00:19:14 +0200 Subject: [PATCH] Properly check for command's existence in `[p]alias add` (#3734) --- redbot/cogs/alias/alias.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/redbot/cogs/alias/alias.py b/redbot/cogs/alias/alias.py index 68025944d..a977fa9fe 100644 --- a/redbot/cogs/alias/alias.py +++ b/redbot/cogs/alias/alias.py @@ -280,7 +280,7 @@ class Alias(commands.Cog): ) return - given_command_exists = self.bot.get_command(command) is not None + given_command_exists = self.bot.get_command(command.split(maxsplit=1)[0]) is not None if not given_command_exists: await ctx.send( _("You attempted to create a new alias for a command that doesn't exist.")