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() ) }