From a9acb80132e5dd1620758b3bd08a783b591b100f Mon Sep 17 00:00:00 2001 From: jack1142 <6032823+jack1142@users.noreply.github.com> Date: Thu, 28 May 2020 23:58:52 +0200 Subject: [PATCH] Use `bot.send_help_for` in `[p]alias help` instead of "hacky way" (#3864) * Use `bot.send_help_for` instead of this "hack" in `[p]alias help` * This isn't needed here --- redbot/cogs/alias/alias.py | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/redbot/cogs/alias/alias.py b/redbot/cogs/alias/alias.py index 937611124..0cd9eae37 100644 --- a/redbot/cogs/alias/alias.py +++ b/redbot/cogs/alias/alias.py @@ -258,14 +258,7 @@ class Alias(commands.Cog): """Try to execute help for the base command of the alias.""" alias = await self._aliases.get_alias(ctx.guild, alias_name=alias_name) if alias: - 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 = f"{ctx.prefix}help {base_cmd}" - await self.bot.process_commands(new_msg) + await self.bot.send_help_for(ctx, alias.command) else: await ctx.send(_("No such alias exists."))