io.github.freya022.botcommands.internal.commands.prefixed.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.prefixed
import io.github.freya022.botcommands.api.commands.prefixed.builder.TextCommandOptionBuilder
import io.github.freya022.botcommands.api.parameters.RegexParameterResolver
import io.github.freya022.botcommands.internal.commands.application.CommandOption
class TextCommandOption(
optionBuilder: TextCommandOptionBuilder,
override val resolver: RegexParameterResolver<*, *>
) : CommandOption(optionBuilder) {
val groupCount = resolver.preferredPattern.matcher("").groupCount()
val helpName: String = optionBuilder.optionName
val helpExample: String? = optionBuilder.helpExample
val isId = optionBuilder.isId
}