Skip to content

Commit

Permalink
Make play command a sub command
Browse files Browse the repository at this point in the history
  • Loading branch information
DRSchlaubi committed Oct 27, 2024
1 parent 5ff00d1 commit 3e29bd2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 3e29bd2

Please sign in to comment.