Optional
class Optional<S, D : ArgumentDescriptor<*>>( builder: ArgumentBuilder<S, *>, name: String, descriptor: D) : CommandArgument<S, ArgumentBuilder<S, *>, D, ArgumentAccessor<S, D>?>
Content copied to clipboard
CommandArgument that may be absent from the command.
Author
Cypher121
See also
Constructors
Functions
Link copied to clipboard
open inline override fun register(parentBuilder: ArgumentBuilder<S, *>, action: ArgumentBuilder<S, *>.(ArgumentAccessor<S, D>?) -> Unit)
Content copied to clipboard
Registers the argument on the parentBuilder as an optional argument and further configures the resulting subcommands with the given action.