ApplicationCommandOption

Represents a Discord input option of an application command.

Inheritors

Properties

Link copied to clipboard
abstract override val command: ApplicationCommandInfo

The executable command this parameter is from.

Link copied to clipboard
abstract val context: BContext

The main context.

Link copied to clipboard
abstract val declaredName: String

The name of this option in the command/aggregator.

Link copied to clipboard
abstract val index: Int

The index of this option in the command/aggregator.

Link copied to clipboard
abstract val isNullable: Boolean

Whether this option's value can be null.

Link copied to clipboard
abstract val isOptional: Boolean

Whether this option's value can be omitted.

Link copied to clipboard

Whether this option's value can either be omitted or null

Link copied to clipboard

Whether this option's value is required.

Link copied to clipboard
abstract val isVararg: Boolean

Whether this option is part of vararg parameter.

Link copied to clipboard
abstract val kParameter: KParameter

A parameter from either the command function, or from an aggregation function.

Link copied to clipboard
abstract val nullValue: Any?

Fallback value when this option's resolver returned null.

Link copied to clipboard
abstract val type: KType

Generified type of the option.