mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-11-20 18:06:08 -05:00
Properly check for command's existence in [p]alias add (#3734)
This commit is contained in:
@@ -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.")
|
||||
|
||||
Reference in New Issue
Block a user