CommandArgument
sealed class CommandArgument<S, out B : ArgumentBuilder<S, *>, out D : ArgumentDescriptor<*>, out A>
Content copied to clipboard
An argument ready to be registered into a command. Can be either optional or required.
Author
Cypher121
Types
Link copied to clipboard
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.
Link copied to clipboard
class Required<S, B : ArgumentBuilder<S, *>, D : ArgumentDescriptor<*>>( builder: B, name: String, descriptor: D) : CommandArgument<S, B, D, ArgumentAccessor<S, D>>
Content copied to clipboard
CommandArgument that must be present in the command.