TypeVariant

interface TypeVariant<out OutType>

Intrinsic variant of an CommandValueArgument.

The intrinsic reveals the independent conversion property of this type. Conversion with TypeVariant is out of any contextual resource, except the output type declared by the TypeVariant itself.

TypeVariant is not necessary for all CommandValueArguments.

See also

Parameters

OutType

the type this TypeVariant can map a argument Message to .

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
abstract fun mapValue(valueArgument: Message): OutType

Properties

Link copied to clipboard
abstract val outType: KType

The reified type of OutType

Inheritors

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard