Skip to content

Commit

Permalink
[Help command] Utilize copy to clipboard (Cog-Creators#6244)
Browse files Browse the repository at this point in the history
Co-authored-by: Kreusada Ignad Amredes <[email protected]>
  • Loading branch information
TrustyJAID and Kreusada authored Dec 24, 2024
1 parent 18614b1 commit fdaa869
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions redbot/core/commands/help.py
Original file line number Diff line number Diff line change
Expand Up @@ -352,11 +352,10 @@ async def format_command_help(
description = command.description or ""

tagline = self.format_tagline(ctx, help_settings.tagline) or self.get_default_tagline(ctx)
signature = _("Syntax: {command_signature}").format(
command_signature=self.get_command_signature(ctx, command)
)
signature = self.get_command_signature(ctx, command)

aliases = command.aliases
sig_description = bold(_("Syntax:\n")) + box(signature)
if help_settings.show_aliases and aliases:
alias_fmt = _("Aliases") if len(command.aliases) > 1 else _("Alias")
aliases = sorted(aliases, key=len)
Expand Down Expand Up @@ -386,7 +385,7 @@ async def format_command_help(
aliases_content = _("{aliases} and one more alias.").format(
aliases=aliases_formatted_list
)
signature += f"\n{alias_fmt}: {aliases_content}"
sig_description += bold(f"{alias_fmt}:") + box(f"{aliases_content}")

subcommands = None
if hasattr(command, "all_commands"):
Expand All @@ -400,7 +399,7 @@ async def format_command_help(
emb["embed"]["title"] = f"*{description[:250]}*"

emb["footer"]["text"] = tagline
emb["embed"]["description"] = box(signature)
emb["embed"]["description"] = sig_description

command_help = command.format_help_for_context(ctx)
if command_help:
Expand Down

0 comments on commit fdaa869

Please sign in to comment.