fix: shoten title when its too long

This commit is contained in:
moonleay 2023-10-15 13:29:30 +02:00
parent 32b3321968
commit c733bf14d1

View file

@ -177,6 +177,9 @@ object MessageUtil {
): EmbedBuilder {
val ebb = EmbedBuilder()
val now: LocalDateTime = LocalDateTime.now()
if (title.length > 250)
ebb.title = title.substring(0, 250) + "[...]"
else
ebb.title = title
ebb.author {
this.name = author