From 3ca2a9af286f593aa061bfe47892250ab5462b21 Mon Sep 17 00:00:00 2001 From: Michael H Date: Fri, 31 May 2019 15:37:50 -0400 Subject: [PATCH] [Help] Fix long cog helps (#2730) * [Help] Fix long cog helps - Why do people thing a category help of over 250 characters is more useful than putting the help in relevent commands?! * toss an MD fix in here too I guess --- redbot/core/commands/help.py | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/redbot/core/commands/help.py b/redbot/core/commands/help.py index 3f671df7e..eb6fbf49e 100644 --- a/redbot/core/commands/help.py +++ b/redbot/core/commands/help.py @@ -166,7 +166,7 @@ class RedHelpFormatter: if command.help: splitted = command.help.split("\n\n") - name = "__{0}__".format(splitted[0]) + name = splitted[0] value = "\n\n".join(splitted[1:]).replace("[p]", ctx.clean_prefix) if not value: value = EMPTY_STRING @@ -287,7 +287,13 @@ class RedHelpFormatter: emb["footer"]["text"] = tagline if description: - emb["embed"]["title"] = f"*{description[:2044]}*" + splitted = description.split("\n\n") + name = splitted[0] + value = "\n\n".join(splitted[1:]).replace("[p]", ctx.clean_prefix) + if not value: + value = EMPTY_STRING + field = EmbedField(name[:252], value[:1024], False) + emb["fields"].append(field) if coms: