mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-11-07 03:38:53 -05:00
Send error in [p]alias add when target command doesn't exist (#3710)
This commit is contained in:
parent
ff68538085
commit
5716cebb0f
@ -279,6 +279,13 @@ class Alias(commands.Cog):
|
|||||||
).format(name=alias_name)
|
).format(name=alias_name)
|
||||||
)
|
)
|
||||||
return
|
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
|
# endregion
|
||||||
|
|
||||||
# At this point we know we need to make a new alias
|
# At this point we know we need to make a new alias
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user