BotCommands
Toggle table of contents
3.0.0
jvm
Target filter
jvm
Switch theme
Search in API
Skip to content
BotCommands
BotCommands-core
/
io.github.freya022.botcommands.api.commands.text.builder
/
TextCommandBuilder
/
subcommand
subcommand
abstract
fun
subcommand
(
name
:
String
,
block
:
TextCommandBuilder
.
(
)
->
Unit
)
(
source
)
Adds a subcommand with the provided name.
Throws
Illegal
Argument
Exception
If the name does not match
[\w-]+