TextCommandVariation

Properties

Link copied to clipboard
abstract val command: TextCommandInfo

The text command this variation is from, a text command has one or more variations, see TextCommandBuilder.variation for details.

Link copied to clipboard
abstract val completePattern: Regex?

The regex pattern which matches this text command variation with its options.

Link copied to clipboard
abstract val context: BContext

The main context.

Link copied to clipboard

Purely for debugging purposes, will be shown in exceptions.

Link copied to clipboard
abstract val description: String?

Description of this text command variation.

Link copied to clipboard

All options representing a Discord input.

Link copied to clipboard
abstract val example: String?

Custom example for this text command variation.

Link copied to clipboard
abstract val function: KFunction<*>

The target function of this executable.

Link copied to clipboard

Whether this text command variation has multiple options which are quotable

Link copied to clipboard
abstract override val parameters: List<TextCommandParameter>

The parameters of this executable.

Link copied to clipboard
abstract val usage: String?

Custom usage syntax for this text command variation.

Functions

Link copied to clipboard

Returns the option with the supplied declared name (i.e., name of the method parameter), or null if not found.

Link copied to clipboard

Returns the option with the supplied display name (i.e., the name you see on the built-in help command), or null if not found.

Link copied to clipboard
open override fun getParameter(declaredName: String): TextCommandParameter?

Returns the aggregated parameter with the supplied declared name (i.e., name of the method parameter), or null if not found.

Link copied to clipboard
abstract fun hasFilters(): Boolean

Return true if this has a one or more filters.