forked from DiscordBots/lilJudd
fix: fixed issue with cloned embeds not implementing the footer correctly
Signed-off-by: moonleay <contact@moonleay.net>
This commit is contained in:
parent
a7e656bcbe
commit
0cd3e4d6a8
1 changed files with 9 additions and 0 deletions
|
@ -37,6 +37,11 @@ object MessageUtil {
|
||||||
val ebb = EmbedBuilder()
|
val ebb = EmbedBuilder()
|
||||||
ebb.color = e.color
|
ebb.color = e.color
|
||||||
ebb.title = e.title
|
ebb.title = e.title
|
||||||
|
ebb.author {
|
||||||
|
this.icon = e.author?.url
|
||||||
|
this.name = e.author?.name.toString()
|
||||||
|
this.url = e.author?.url
|
||||||
|
}
|
||||||
e.fields.forEach {
|
e.fields.forEach {
|
||||||
val fb = EmbedBuilder.Field()
|
val fb = EmbedBuilder.Field()
|
||||||
fb.name = it.name
|
fb.name = it.name
|
||||||
|
@ -44,6 +49,10 @@ object MessageUtil {
|
||||||
fb.inline = it.inline
|
fb.inline = it.inline
|
||||||
ebb.fields.add(fb)
|
ebb.fields.add(fb)
|
||||||
}
|
}
|
||||||
|
ebb.footer {
|
||||||
|
this.icon = e.footer?.iconUrl
|
||||||
|
this.text = e.footer?.text.toString()
|
||||||
|
}
|
||||||
ebb.description = e.description
|
ebb.description = e.description
|
||||||
return ebb
|
return ebb
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue