mirror of
https://github.com/Rapptz/discord.py.git
synced 2026-11-20 13:29:03 +00:00
[commands] Add displayed_name to commands.Parameter
This commit is contained in:
1 parent
d34a88411d
commit
94bf7d8644
4 files changed
+39
-10
No files matched your search
@@ -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