From 79e5d2c9d7d152ff0e5df2e1b19e13075f2a7261 Mon Sep 17 00:00:00 2001 From: DevilXD Date: Thu, 16 May 2019 02:01:02 +0200 Subject: [PATCH] Fixed command doc formatting in code blocks (#2678) --- redbot/core/commands/help.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/redbot/core/commands/help.py b/redbot/core/commands/help.py index 29127b3c7..a447bcab1 100644 --- a/redbot/core/commands/help.py +++ b/redbot/core/commands/help.py @@ -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