chore(bot): raise Discord embed description character limit

short lists should (hopefully) have line breaks less often now
This commit is contained in:
spiral 2022-09-22 17:19:18 +00:00
parent 5aa8d45139
commit c77da49d30
No known key found for this signature in database
GPG Key ID: 244A11E4B0BCF40E

View File

@ -183,7 +183,7 @@ public static class DiscordUtils
{
static int CharacterLimit(int pageNumber) =>
// First chunk goes in description (2048 chars), rest go in embed values (1000 chars)
pageNumber == 0 ? 2048 : 1000;
pageNumber == 0 ? 4096 : 1024;
var linesWithEnding = lines.Select(l => $"{l}\n");
var pages = StringUtils.JoinPages(linesWithEnding, CharacterLimit);