mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-11-06 03:08:55 -05:00
[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
This commit is contained in:
parent
e7b615d921
commit
3ca2a9af28
@ -166,7 +166,7 @@ class RedHelpFormatter:
|
|||||||
|
|
||||||
if command.help:
|
if command.help:
|
||||||
splitted = command.help.split("\n\n")
|
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)
|
value = "\n\n".join(splitted[1:]).replace("[p]", ctx.clean_prefix)
|
||||||
if not value:
|
if not value:
|
||||||
value = EMPTY_STRING
|
value = EMPTY_STRING
|
||||||
@ -287,7 +287,13 @@ class RedHelpFormatter:
|
|||||||
|
|
||||||
emb["footer"]["text"] = tagline
|
emb["footer"]["text"] = tagline
|
||||||
if description:
|
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:
|
if coms:
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user