diff --git a/build.gradle.kts b/build.gradle.kts index 05f396b..6ca0e2f 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -32,7 +32,7 @@ val ownerID = 372703841151614976L group = "net.moonleay.liljudd" version = System.getenv("CI_COMMIT_TAG")?.let { "$it-${System.getenv("CI_COMMIT_SHORT_SHA")}-prod" } ?: System.getenv("CI_COMMIT_SHORT_SHA")?.let { "$it-dev" } - ?: "2.1.0" + ?: "2.1.0.3" val kordver = "1.5.6" val coroutinesver = "1.1.0" diff --git a/src/main/kotlin/net/moonleay/lilJudd/features/TimePlanner.kt b/src/main/kotlin/net/moonleay/lilJudd/features/TimePlanner.kt index cd23727..ed877b6 100644 --- a/src/main/kotlin/net/moonleay/lilJudd/features/TimePlanner.kt +++ b/src/main/kotlin/net/moonleay/lilJudd/features/TimePlanner.kt @@ -64,8 +64,8 @@ object TimePlanner { } Logger.out("${channelList.count()} Channels to notify!") for (ch in channelList) { - if (Bot.bot.kordRef.getChannel(ch)!!.asChannelOrNull() == null) - return@doInfinity + if (Bot.bot.kordRef.getChannel(ch) == null) + continue // TODO: Remove from DB val c = Bot.bot.kordRef.getChannelOf(ch)!! c.createMessage { this.embeds.add( diff --git a/src/main/kotlin/net/moonleay/lilJudd/util/MessageUtil.kt b/src/main/kotlin/net/moonleay/lilJudd/util/MessageUtil.kt index e6e1c1b..bc1d660 100644 --- a/src/main/kotlin/net/moonleay/lilJudd/util/MessageUtil.kt +++ b/src/main/kotlin/net/moonleay/lilJudd/util/MessageUtil.kt @@ -77,10 +77,6 @@ object MessageUtil { ebb.color = e.color ebb.title = e.title ebb.description = e.description - ebb.footer { - icon = e.footer!!.iconUrl - text = e.footer!!.text - } return ebb }