get
operator fun <S, D : ArgumentDescriptor<*>> CommandContext<S>.get(accessor: ArgumentAccessor<S, D>): ArgumentReader<S, D>
Content copied to clipboard
Applies the accessor to the receiver CommandContext.
Shorthand/alternative to context.accessor()
.
operator fun <S, D : ArgumentDescriptor<*>> CommandContext<S>.get(accessor: ArgumentAccessor<S, D>?): ArgumentReader<S, D>?
Content copied to clipboard
Applies the accessor to the receiver CommandContext.
If accessor is null
, returns null
.
Shorthand/alternative to context.accessor()
.