Widget

abstract class Widget<T>

Abstract type representing a grid-based widget.

Inheritors

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard
abstract var height: Int

How tall this widget is, in grid cells.

Link copied to clipboard
abstract var value: T

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

Link copied to clipboard
abstract var width: Int

How wide this widget is, in grid cells.

Functions

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

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

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

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