mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-11-22 02:37:57 -05:00
[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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user