mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-11-06 11:18:54 -05:00
Update _internal_utils.py (#3673)
This commit is contained in:
parent
5d66e4eaf8
commit
c1a96c83fb
@ -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")
|
||||
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user