[Help] Fix embed size calculation for additional text (#3208)

* Fix size calculation for additional text

* changelog

* ffs

* because of course that's a thing

* *sigh*

* prevent an edge case

* more

* ...

* ...
This commit is contained in:
Michael H
2019-12-26 16:53:03 -05:00
committed by GitHub
parent 12af6232e2
commit 8b18526f46
3 changed files with 55 additions and 17 deletions

View File

@@ -1313,14 +1313,14 @@ class Core(commands.Cog, CoreLogic):
This setting only applies to embedded help.
Please note that setting a relitavely small character limit may
mean some pages will exceed this limit. This is because categories
are never spread across multiple pages in the help message.
The default value is 1000 characters. The minimum value is 500.
The maximum is based on the lower of what you provide and what discord allows.
The default value is 1000 characters.
Please note that setting a relatively small character limit may
mean some pages will exceed this limit.
"""
if limit <= 0:
await ctx.send(_("You must give a positive value!"))
if limit < 500:
await ctx.send(_("You must give a value of at least 500 characters."))
return
await ctx.bot._config.help.page_char_limit.set(limit)