mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-11-06 11:18:54 -05:00
Update alias.py (#3546)
This commit is contained in:
parent
3991a2d88f
commit
a763726c89
@ -356,9 +356,7 @@ class Alias(commands.Cog):
|
|||||||
base_cmd = alias.command.rsplit(" ", 1)[0]
|
base_cmd = alias.command.rsplit(" ", 1)[0]
|
||||||
|
|
||||||
new_msg = copy(ctx.message)
|
new_msg = copy(ctx.message)
|
||||||
new_msg.content = _("{prefix}help {command}").format(
|
new_msg.content = f"{ctx.prefix}help {base_cmd}"
|
||||||
prefix=ctx.prefix, command=base_cmd
|
|
||||||
)
|
|
||||||
await self.bot.process_commands(new_msg)
|
await self.bot.process_commands(new_msg)
|
||||||
else:
|
else:
|
||||||
await ctx.send(_("No such alias exists."))
|
await ctx.send(_("No such alias exists."))
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user