fix: fixed issue with cloned embeds not implementing the footer correctly

Signed-off-by: moonleay <contact@moonleay.net>
This commit is contained in:
moonleay 2024-02-13 20:04:13 +01:00
parent a7e656bcbe
commit 0cd3e4d6a8
Signed by: moonleay
GPG key ID: 82667543CCD715FB

View file

@ -37,6 +37,11 @@ object MessageUtil {
val ebb = EmbedBuilder()
ebb.color = e.color
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 {
val fb = EmbedBuilder.Field()
fb.name = it.name
@ -44,6 +49,10 @@ object MessageUtil {
fb.inline = it.inline
ebb.fields.add(fb)
}
ebb.footer {
this.icon = e.footer?.iconUrl
this.text = e.footer?.text.toString()
}
ebb.description = e.description
return ebb
}