mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-11-06 03:08:55 -05:00
Fixed command doc formatting in code blocks (#2678)
This commit is contained in:
parent
3a62d392b4
commit
79e5d2c9d7
@ -208,7 +208,7 @@ class RedHelpFormatter:
|
||||
doc_max_width = 80 - max_width
|
||||
for nm, com in sorted(cmds):
|
||||
width_gap = discord.utils._string_width(nm) - len(nm)
|
||||
doc = command.short_doc
|
||||
doc = com.short_doc
|
||||
if len(doc) > doc_max_width:
|
||||
doc = doc[: doc_max_width - 3] + "..."
|
||||
yield nm, doc, max_width - width_gap
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user