Widget

abstract class Widget

A component usable inside modal forms.

Inheritors

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard
abstract var height: Int

How tall this component is, in grid cells.

Link copied to clipboard
abstract var width: Int

How wide this component is, in grid cells.

Functions

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

Function called to apply this component to a Discord form.

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

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