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,7 +177,10 @@ object MessageUtil {
|
||||||
): EmbedBuilder {
|
): EmbedBuilder {
|
||||||
val ebb = EmbedBuilder()
|
val ebb = EmbedBuilder()
|
||||||
val now: LocalDateTime = LocalDateTime.now()
|
val now: LocalDateTime = LocalDateTime.now()
|
||||||
ebb.title = title
|
if (title.length > 250)
|
||||||
|
ebb.title = title.substring(0, 250) + "[...]"
|
||||||
|
else
|
||||||
|
ebb.title = title
|
||||||
ebb.author {
|
ebb.author {
|
||||||
this.name = author
|
this.name = author
|
||||||
this.icon = logo
|
this.icon = logo
|
||||||
|
|
Loading…
Reference in a new issue