literal

inline fun literal(name: String, builder: LiteralCommandBuilder<Source>.() -> Unit = {}): <Error class: unknown class>(source)

Adds a new subcommand / literal to this command.

possible usage:

command("mycommand") {
literal("subcommand") {
// the body of the subcommand
}
}

Parameters

name

the name of the subcommand