diff --git a/test-bot/src/main/kotlin/dev/kordex/test/bot/TestBot.kt b/test-bot/src/main/kotlin/dev/kordex/test/bot/TestBot.kt index 4298156a99..9fb9a79787 100644 --- a/test-bot/src/main/kotlin/dev/kordex/test/bot/TestBot.kt +++ b/test-bot/src/main/kotlin/dev/kordex/test/bot/TestBot.kt @@ -109,7 +109,6 @@ public suspend fun main() { add(::PaginatorTestExtension) add(::PKTestExtension) add(::SelectorTestExtension) - add(::NestingTestExtension) } plugins { diff --git a/test-bot/src/main/kotlin/dev/kordex/test/bot/extensions/NestingTestExtension.kt b/test-bot/src/main/kotlin/dev/kordex/test/bot/extensions/NestingTestExtension.kt deleted file mode 100644 index f3703ac710..0000000000 --- a/test-bot/src/main/kotlin/dev/kordex/test/bot/extensions/NestingTestExtension.kt +++ /dev/null @@ -1,49 +0,0 @@ -/* - * This Source Code Form is subject to the terms of the Mozilla Public - * License, v. 2.0. If a copy of the MPL was not distributed with this - * file, You can obtain one at https://mozilla.org/MPL/2.0/. - */ - -package dev.kordex.test.bot.extensions - -import dev.kordex.core.commands.application.slash.group -import dev.kordex.core.commands.application.slash.publicSubCommand -import dev.kordex.core.extensions.Extension -import dev.kordex.core.extensions.publicSlashCommand - -public class NestingTestExtension : Extension() { - override val name: String = "kordex.test-nesting" - - override suspend fun setup() { - publicSlashCommand { - name = "root" - description = "Insert thoughtful proverb here" - - group("group") { - description = "Insert required description here" - - publicSubCommand { - name = "subcommand" - description = "...in a group!" - - action { - respond { - content = "Ah-ah-ah!" - } - } - } - } - - publicSubCommand { - name = "subcommand" - description = "...NEXT to a group!" - - action { - respond { - content = "Ah-ah-ah!" - } - } - } - } - } -}