From df19c994385a277f256691f8e89d8e7c20c720c3 Mon Sep 17 00:00:00 2001 From: Gareth Coles Date: Thu, 12 Dec 2024 22:12:35 +0000 Subject: [PATCH] Small hotfixes --- kord-extensions/data/data-collection.properties | 3 --- .../kordex/core/components/menus/string/StringSelectOption.kt | 2 +- .../kotlin/dev/kordex/core/i18n/ResourceBundleTranslations.kt | 2 +- 3 files changed, 2 insertions(+), 5 deletions(-) delete mode 100644 kord-extensions/data/data-collection.properties diff --git a/kord-extensions/data/data-collection.properties b/kord-extensions/data/data-collection.properties deleted file mode 100644 index 490fcf2756..0000000000 --- a/kord-extensions/data/data-collection.properties +++ /dev/null @@ -1,3 +0,0 @@ -#KordEx data collection state. Do not delete! -#Tue Aug 06 17:53:50 IST 2024 -lastLevel=standard diff --git a/kord-extensions/src/main/kotlin/dev/kordex/core/components/menus/string/StringSelectOption.kt b/kord-extensions/src/main/kotlin/dev/kordex/core/components/menus/string/StringSelectOption.kt index c755cbc57c..82f3cf892f 100644 --- a/kord-extensions/src/main/kotlin/dev/kordex/core/components/menus/string/StringSelectOption.kt +++ b/kord-extensions/src/main/kotlin/dev/kordex/core/components/menus/string/StringSelectOption.kt @@ -30,7 +30,7 @@ public class StringSelectOption( this.description = this@StringSelectOption.description!!.translate() } - if (this@StringSelectOption.description != null) { + if (this@StringSelectOption.emoji != null) { this.emoji = this@StringSelectOption.emoji!! } } diff --git a/kord-extensions/src/main/kotlin/dev/kordex/core/i18n/ResourceBundleTranslations.kt b/kord-extensions/src/main/kotlin/dev/kordex/core/i18n/ResourceBundleTranslations.kt index 87295ae384..7606381532 100644 --- a/kord-extensions/src/main/kotlin/dev/kordex/core/i18n/ResourceBundleTranslations.kt +++ b/kord-extensions/src/main/kotlin/dev/kordex/core/i18n/ResourceBundleTranslations.kt @@ -226,7 +226,7 @@ public open class ResourceBundleTranslations( }.build() .formatToString( replacements.mapIndexed { index, value -> - 0.toString() to value + index.toString() to value }.toMap() ) }