![JAR search and dependency download from the Maven repository](/logo.png)
io.github.freya022.botcommands.api.commands.text.builder.TextSubcommandBuilder.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of BotCommands Show documentation
Show all versions of BotCommands Show documentation
A Kotlin-first (and Java) framework that makes creating Discord bots a piece of cake, using the JDA library.
package io.github.freya022.botcommands.api.commands.text.builder
import io.github.freya022.botcommands.api.core.BContext
import io.github.freya022.botcommands.internal.commands.mixins.INamedCommand
import io.github.freya022.botcommands.internal.commands.text.TextCommandInfo
import io.github.freya022.botcommands.internal.commands.text.TextSubcommandInfo
class TextSubcommandBuilder internal constructor(context: BContext, name: String,
override val parentInstance: INamedCommand) : TextCommandBuilder(context, name) {
internal fun build(parentInstance: TextCommandInfo?): TextCommandInfo {
require(variations.isNotEmpty()) {
"Text command should have at least 1 variation"
}
return TextSubcommandInfo(this, parentInstance)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy