Component

Abstract class representing a basic Discord component.

Inheritors

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard

Bot object.

Link copied to clipboard
val kord: Kord

Kord instance, backing the ExtensibleBot.

Link copied to clipboard

Quick access to the command registry.

Link copied to clipboard

Sentry adapter, for easy access to Sentry functions.

Link copied to clipboard

Bot settings object.

Link copied to clipboard
open val unitWidth: Int = 1

Component width, how many "slots" in one row it needs to be added to the row.

Functions

Link copied to clipboard
abstract fun apply(builder: ActionRowBuilder)

Called to apply the given component to a Kord ActionRowBuilder.

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

Get the associated Koin instance.

Link copied to clipboard
abstract fun validate()

Validation function, called to ensure the component is valid, throws exceptions if not.