From c1a96c83fb6df74fb67597492bb954292e075d2b Mon Sep 17 00:00:00 2001 From: jack1142 <6032823+jack1142@users.noreply.github.com> Date: Sat, 28 Mar 2020 01:37:59 +0100 Subject: [PATCH] Update _internal_utils.py (#3673) --- redbot/core/utils/_internal_utils.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/redbot/core/utils/_internal_utils.py b/redbot/core/utils/_internal_utils.py index edd0b8c2a..de4a9b518 100644 --- a/redbot/core/utils/_internal_utils.py +++ b/redbot/core/utils/_internal_utils.py @@ -152,7 +152,8 @@ async def format_fuzzy_results( if embed is not False and (embed is True or await ctx.embed_requested()): lines = [] for cmd in matched_commands: - lines.append(f"**{ctx.clean_prefix}{cmd.qualified_name}** {cmd.short_doc}") + short_doc = cmd.format_shortdoc_for_context(ctx) + lines.append(f"**{ctx.clean_prefix}{cmd.qualified_name}** {short_doc}") return discord.Embed( title="Perhaps you wanted one of these?", colour=await ctx.embed_colour(), @@ -161,7 +162,8 @@ async def format_fuzzy_results( else: lines = [] for cmd in matched_commands: - lines.append(f"{ctx.clean_prefix}{cmd.qualified_name} -- {cmd.short_doc}") + short_doc = cmd.format_shortdoc_for_context(ctx) + lines.append(f"{ctx.clean_prefix}{cmd.qualified_name} -- {short_doc}") return "Perhaps you wanted one of these? " + box("\n".join(lines), lang="vhdl")