From 0cd3e4d6a8b8d38077c3c632b932b74d41b359ab Mon Sep 17 00:00:00 2001 From: moonleay Date: Tue, 13 Feb 2024 20:04:13 +0100 Subject: [PATCH] fix: fixed issue with cloned embeds not implementing the footer correctly Signed-off-by: moonleay --- src/main/kotlin/net/moonleay/liljudd/util/MessageUtil.kt | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/main/kotlin/net/moonleay/liljudd/util/MessageUtil.kt b/src/main/kotlin/net/moonleay/liljudd/util/MessageUtil.kt index 98503d6..f531dd0 100644 --- a/src/main/kotlin/net/moonleay/liljudd/util/MessageUtil.kt +++ b/src/main/kotlin/net/moonleay/liljudd/util/MessageUtil.kt @@ -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 }