From b95d56100664985c117f8d44c2287c41ecdfcd25 Mon Sep 17 00:00:00 2001 From: Michael Rittmeister Date: Tue, 5 Nov 2024 21:38:31 +0100 Subject: [PATCH] Fix emoji converter throwing an error --- .../kotlin/dev/schlaubi/tonbrett/bot/command/EmojiConverter.kt | 3 ++- build.gradle.kts | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/bot/src/main/kotlin/dev/schlaubi/tonbrett/bot/command/EmojiConverter.kt b/bot/src/main/kotlin/dev/schlaubi/tonbrett/bot/command/EmojiConverter.kt index 91677f9..8dc1fd7 100644 --- a/bot/src/main/kotlin/dev/schlaubi/tonbrett/bot/command/EmojiConverter.kt +++ b/bot/src/main/kotlin/dev/schlaubi/tonbrett/bot/command/EmojiConverter.kt @@ -12,6 +12,7 @@ import dev.kordex.core.commands.converters.builders.ConverterBuilder import dev.kordex.core.commands.converters.builders.OptionalCoalescingConverterBuilder import dev.kordex.core.commands.converters.impl.emoji import dev.kordex.core.commands.converters.impl.string +import dev.kordex.core.i18n.EMPTY_KEY import dev.kordex.core.i18n.types.Key import dev.kordex.modules.dev.unsafe.annotations.UnsafeAPI import dev.kordex.modules.dev.unsafe.converters.union @@ -37,7 +38,7 @@ fun Arguments.emoji(name: Key, description: Key): OptionalCoalescingConverter