LineTextWidget

A text widget that supports a single line of text.

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard
open override var height: Int

How tall this widget is, in grid cells.

Link copied to clipboard
var id: String

The widget's unique ID on Discord, defaulting to a UUID.

Link copied to clipboard

The initial value to provide for this widget, if any.

Link copied to clipboard
lateinit var label: Key

The widget's label, to be shown on Discord.

Link copied to clipboard

The maximum number of characters that may be provided.

Link copied to clipboard

The minimum number of characters that may be provided.

Link copied to clipboard

Placeholder text, to be shown to the user on Discord.

Link copied to clipboard

Whether this widget must be filled out for the form to be valid.

Link copied to clipboard
open override val style: TextInputStyle

The TextInputStyle, to be provided by a subtype.

Link copied to clipboard

Whether to translate the initialValue.

Link copied to clipboard
open override var value: String?

The final value stored in this widget, as provided by the user.

Link copied to clipboard
open override var width: Int

How wide this widget is, in grid cells.

Functions

Link copied to clipboard
open suspend override fun apply(builder: ActionRowBuilder, locale: Locale)

Function called to apply this widget to a Discord action row.

Link copied to clipboard
open override fun getKoin(): Koin

Get the associated Koin instance.

Link copied to clipboard
open override fun toString(): String
Link copied to clipboard
open override fun validate()

Function called to ensure that this widget was set up correctly.