mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-11-21 10:17:59 -05:00
Send error in [p]alias add when target command doesn't exist (#3710)
This commit is contained in:
@@ -279,6 +279,13 @@ class Alias(commands.Cog):
|
||||
).format(name=alias_name)
|
||||
)
|
||||
return
|
||||
|
||||
given_command_exists = self.bot.get_command(command) 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.")
|
||||
)
|
||||
return
|
||||
# endregion
|
||||
|
||||
# At this point we know we need to make a new alias
|
||||
|
||||
Reference in New Issue
Block a user