ArgumentConstructor

class ArgumentConstructor<S, B : ArgumentBuilder<S, *>, D : ArgumentDescriptor<*>>(    val builder: B,     val name: String,     val descriptor: D)

Class containing all data necessary to construct an optional or required argument.

Constructors

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

Functions

Link copied to clipboard
fun optional(): CommandArgument.Optional<S, D>

Converts this constructor into an optional argument.

Link copied to clipboard
fun required(): CommandArgument.Required<S, B, D>

Converts this constructor into a required argument.

Properties

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