buildAndRegister

fun <C : Any> CommandManager<C>.buildAndRegister(name: String, description: Description = Description.empty(), aliases: Array<String> = emptyArray(), lambda: MutableCommandBuilder<C>.() -> Unit): MutableCommandBuilder<C>

Create a new MutableCommandBuilder which will invoke the provided receiver lambda, and then register itself with the owning CommandManager

Parameters

name

name for the root command node

description

description for the root command node

aliases

aliases for the root command node

lambda

receiver lambda which will be invoked on the new builder