subcommand

abstract fun subcommand(name: String, block: TextCommandBuilder.() -> Unit)(source)

Adds a subcommand with the provided name.

Throws

If the name does not match [\w-]+