fix: shoten title when its too long
This commit is contained in:
parent
32b3321968
commit
c733bf14d1
1 changed files with 4 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue