AutoCompleteArgument

data class AutoCompleteArgument(val name: String, val type: ApplicationCommandOptionType, val value: String, val focused: OptionalBoolean) : CommandArgument<String> (source)

Representation of a partial user input of an auto completed argument.

Constructors

Link copied to clipboard
constructor(name: String, type: ApplicationCommandOptionType, value: String, focused: OptionalBoolean)

Properties

Link copied to clipboard
open override val focused: OptionalBoolean

always true, since this is an auto complete argument

Link copied to clipboard
open override val name: String

the name of the property

Link copied to clipboard

the type of the backing argument (not the type of value as the user can enter anything)

Link copied to clipboard
open override val value: String

whatever the user already typed into the argument field