Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Help command] Utilize copy to clipboard #6244

Open
wants to merge 3 commits into
base: V3/develop
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading