All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.github.freya022.botcommands.internal.commands.prefixed.TextCommandOption.kt Maven / Gradle / Ivy

Go to download

A Kotlin-first (and Java) framework that makes creating Discord bots a piece of cake, using the JDA library.

There is a newer version: 3.0.0-alpha.18
Show newest version
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
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy