From fd954a1f37bba9c90219907c8726ffc8fd58ce22 Mon Sep 17 00:00:00 2001 From: Michael Rittmeister Date: Sun, 22 Sep 2024 16:53:48 +0200 Subject: [PATCH] Disable custom emoji mode in user mode --- build.gradle.kts | 2 +- .../space/votebot/commands/vote/create/CreateCommand.kt | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/build.gradle.kts b/build.gradle.kts index 5f34984..291eaf4 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -5,7 +5,7 @@ plugins { alias(libs.plugins.kotlin.serialization) apply false } allprojects { - version = "5.5.3" + version = "5.6.0" group = "space.votebot" repositories { diff --git a/plugin/src/main/kotlin/space/votebot/commands/vote/create/CreateCommand.kt b/plugin/src/main/kotlin/space/votebot/commands/vote/create/CreateCommand.kt index 96e1bb3..2e4ad42 100644 --- a/plugin/src/main/kotlin/space/votebot/commands/vote/create/CreateCommand.kt +++ b/plugin/src/main/kotlin/space/votebot/commands/vote/create/CreateCommand.kt @@ -347,7 +347,9 @@ suspend fun VoteBotModule.createCommand() = ephemeralSlashCommand(::CreateArgume } render() - ChoiceEmojiMode.entries.forEach { + ChoiceEmojiMode.entries + .filter { isGuildInstall || it != ChoiceEmojiMode.CUSTOM } + .forEach { val label = translate( "commands.create.interactive.emoji_mode.place_holder", arrayOf(translate(it.readableName))