From 46c38a28eb455b6e0537de8aaf4c23d83904cdbc Mon Sep 17 00:00:00 2001 From: aikaterna <20862007+aikaterna@users.noreply.github.com> Date: Mon, 8 Oct 2018 00:23:32 -0700 Subject: [PATCH] [Alias] Fix alias help (#2194) Alias help would only return the first character of the invoked command previously. This change shows help for basic commands that are aliased (i.e. just `ping`) or aliased commands that have an argument included (i.e. `audioset role beep` with `beep` being a role name) --- redbot/cogs/alias/alias.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/redbot/cogs/alias/alias.py b/redbot/cogs/alias/alias.py index 9f0145e23..c267bf90b 100644 --- a/redbot/cogs/alias/alias.py +++ b/redbot/cogs/alias/alias.py @@ -288,7 +288,10 @@ class Alias(commands.Cog): """Try to execute help for the base command of the alias.""" is_alias, alias = await self.is_alias(ctx.guild, alias_name=alias_name) if is_alias: - base_cmd = alias.command[0] + if self.is_command(alias.command): + base_cmd = alias.command + else: + base_cmd = alias.command.rsplit(" ", 1)[0] new_msg = copy(ctx.message) new_msg.content = _("{prefix}help {command}").format(