CustomArgumentType

interface CustomArgumentType<PARSED, NATIVE> : ArgumentType<PARSED>

An argument type that wraps a native argument type.

The native type is sent to the client for client-side completions and syntax validation, while the server uses custom parsing logic to produce the parsed type.

Parameters

PARSED

The custom type produced by server-side parsing

NATIVE

The native type sent to the client

Properties

Link copied to clipboard
@get:ApiStatus.NonExtendable
open override val examples: Collection<String>
Link copied to clipboard
abstract val nativeType: ArgumentType<NATIVE>

The native argument type sent to the client.

Functions

Link copied to clipboard
@ApiStatus.NonExtendable
open override fun getExamples(): Collection<String>

This is controlled client-side and can't be changed server-side.

Link copied to clipboard
open fun <S : Any?> listSuggestions(context: CommandContext<S?>?, builder: SuggestionsBuilder?): CompletableFuture<Suggestions?>?
Link copied to clipboard
abstract fun parse(p0: StringReader?): PARSED?
Link copied to clipboard

Whether native suggestions should be used.