Required

class Required<S, B : ArgumentBuilder<S, *>, D : ArgumentDescriptor<*>>(    builder: B,     name: String,     descriptor: D) : CommandArgument<S, B, D, ArgumentAccessor<S, D>>

CommandArgument that must be present in the command.

Author

Cypher121

See also

Constructors

Link copied to clipboard
fun <B : ArgumentBuilder<S, *>, D : ArgumentDescriptor<*>> Required(    builder: B,     name: String,     descriptor: D)

Functions

Link copied to clipboard
open inline override fun register(parentBuilder: ArgumentBuilder<S, *>, action: B.(ArgumentAccessor<S, D>) -> Unit)

Registers the argument on the parentBuilder as a required argument and further configures the resulting subcommand with the given action.

Properties

Link copied to clipboard
val builder: B
Link copied to clipboard
val descriptor: D
Link copied to clipboard
val name: String