fix: check correct length for fronthistory embed

This commit is contained in:
spiral
2021-10-03 04:34:26 -04:00
parent c31ea56bc9
commit a546ebc888

View File

@@ -100,7 +100,7 @@ namespace PluralKit.Bot
$"**{membersStr}** ({sw.Timestamp.FormatZoned(system.Zone)}, {switchSince.FormatDuration()} ago)\n"; $"**{membersStr}** ({sw.Timestamp.FormatZoned(system.Zone)}, {switchSince.FormatDuration()} ago)\n";
} }
if (sb.Length + stringToAdd.Length >= 1024) if (sb.Length + stringToAdd.Length >= 4096)
break; break;
sb.Append(stringToAdd); sb.Append(stringToAdd);
} }