mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-11-07 03:38:53 -05:00
Properly check for command's existence in [p]alias add (#3734)
This commit is contained in:
parent
c70c1d97e5
commit
55a3d9b157
@ -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.")
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user