mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-15 18:20:11 +00:00
chore(bot): raise Discord embed description character limit
short lists should (hopefully) have line breaks less often now
This commit is contained in:
parent
5aa8d45139
commit
c77da49d30
1 changed files with 1 additions and 1 deletions
|
|
@ -183,7 +183,7 @@ public static class DiscordUtils
|
||||||
{
|
{
|
||||||
static int CharacterLimit(int pageNumber) =>
|
static int CharacterLimit(int pageNumber) =>
|
||||||
// First chunk goes in description (2048 chars), rest go in embed values (1000 chars)
|
// 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 linesWithEnding = lines.Select(l => $"{l}\n");
|
||||||
var pages = StringUtils.JoinPages(linesWithEnding, CharacterLimit);
|
var pages = StringUtils.JoinPages(linesWithEnding, CharacterLimit);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue