registerCopy

Create a new copy of this mutable builder, act on it with a receiver lambda, and then register it with the owning command manager

Return

the new mutable builder

Parameters

lambda

receiver lambda which will be invoked on the new builder

See also

CommandManager.command

Create a new copy of this mutable builder, append a literal, act on it with a receiver lambda, and then register it with the owning command manager

Return

the new mutable builder

Parameters

literal

name for the literal

lambda

receiver lambda which will be invoked on the new builder

See also

CommandManager.command

fun registerCopy(literal: String, description: Description, lambda: MutableCommandBuilder<C>.() -> Unit): MutableCommandBuilder<C>

Create a new copy of this mutable builder, append a literal, act on it with a receiver lambda, and then register it with the owning command manager

Return

the new mutable builder

Parameters

literal

name for the literal

description

description for the literal

lambda

receiver lambda which will be invoked on the new builder

See also

CommandManager.command