mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-09-05 09:26:10 +00:00
[commands] Add displayed_name to commands.Parameter
This commit is contained in:
@ -1166,7 +1166,7 @@ class DefaultHelpCommand(HelpCommand):
|
||||
|
||||
get_width = discord.utils._string_width
|
||||
for argument in arguments:
|
||||
name = argument.name
|
||||
name = argument.displayed_name or argument.name
|
||||
width = max_size - (get_width(name) - len(name))
|
||||
entry = f'{self.indent * " "}{name:<{width}} {argument.description or self.default_argument_description}'
|
||||
# we do not want to shorten the default value, if any.
|
||||
|
Reference in New Issue
Block a user