![JAR search and dependency download from the Maven repository](/logo.png)
io.github.freya022.botcommands.internal.commands.text.TextCommandOption.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.internal.commands.text
import io.github.freya022.botcommands.api.commands.text.builder.TextCommandOptionBuilder
import io.github.freya022.botcommands.api.parameters.resolvers.TextParameterResolver
import io.github.freya022.botcommands.internal.commands.application.CommandOption
class TextCommandOption(
optionBuilder: TextCommandOptionBuilder,
override val resolver: TextParameterResolver<*, *>
) : CommandOption(optionBuilder) {
val groupCount = resolver.preferredPattern.matcher("").groupCount()
val requiredGroups = resolver.requiredGroups
val helpName: String = optionBuilder.optionName
val helpExample: String? = optionBuilder.helpExample
val isId = optionBuilder.isId
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy