optional
Adds a new component to this command
Return
this mutable builder
Parameters
component
component to add
fun <T> optional(name: String, parser: ParserDescriptor<C, T>, mutator: CommandComponent.Builder<C, T>.() -> Unit = {}): MutableCommandBuilder<C>
fun <T> optional(name: CloudKey<T>, parser: ParserDescriptor<C, T>, mutator: CommandComponent.Builder<C, T>.() -> Unit = {}): MutableCommandBuilder<C>
Adds a new component to this command
Parameters
name
the name of the component
parser
the parser of the component
mutator
mutator of the component
T
the type of the component
Add a new argument to this command
Return
this mutable builder
Parameters
component Supplier
supplier of the component