literal
inline fun literal(name: String, builder: LiteralCommandBuilder<Source>.() -> Unit = {}): LiteralCommandBuilder<Source>(source)
Adds a new subcommand / literal to this command.
possible usage:
command("mycommand") {
literal("subcommand") {
// the body of the subcommand
}
}
Content copied to clipboard
Parameters
name
the name of the subcommand