diff --git a/bot/src/main/kotlin/dev/schlaubi/tonbrett/bot/commands/PlayCommand.kt b/bot/src/main/kotlin/dev/schlaubi/tonbrett/bot/commands/PlayCommand.kt index 585bd55..2fc4947 100644 --- a/bot/src/main/kotlin/dev/schlaubi/tonbrett/bot/commands/PlayCommand.kt +++ b/bot/src/main/kotlin/dev/schlaubi/tonbrett/bot/commands/PlayCommand.kt @@ -1,12 +1,10 @@ package dev.schlaubi.tonbrett.bot.commands import com.kotlindiscord.kord.extensions.modules.unsafe.annotations.UnsafeAPI -import com.kotlindiscord.kord.extensions.modules.unsafe.extensions.unsafeSlashCommand import dev.schlaubi.mikbot.plugin.api.module.SubCommandModule @OptIn(UnsafeAPI::class) -suspend fun SubCommandModule.playCommand() = unsafeSlashCommand { - name = "play" +fun SubCommandModule.playCommand() = unsafeSubCommand("play") { description = "commands.play.description" action { diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml index c920395..a91e651 100644 --- a/gradle/libs.versions.toml +++ b/gradle/libs.versions.toml @@ -3,7 +3,7 @@ kotlin = "2.0.21" ktor = "3.0.0" kmongo = "5.1.0" kord = "0.15.0" -mikbot = "3.37.19" +mikbot = "3.37.20" ksp = "2.0.21-1.0.26" kordex = "1.9.12-mikbot-SNAPSHOT" android = "8.7.1"