Properties

Link copied to clipboard
abstract override val customId: String
Link copied to clipboard
@get:Nullable
abstract val emoji: EmojiUnion?
Link copied to clipboard
abstract val group: ComponentGroup?
Link copied to clipboard
abstract val internalId: Int
Link copied to clipboard
abstract val isDisabled: Boolean
Link copied to clipboard
open val isEnabled: Boolean
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
@get:Nonnull
abstract val label: String
Link copied to clipboard
@get:Nullable
abstract val sku: SkuSnowflake?
Link copied to clipboard
@get:Nonnull
abstract val style: ButtonStyle
Link copied to clipboard
@get:Nonnull
abstract val type: Component.Type
Link copied to clipboard
abstract val uniqueId: Int
Link copied to clipboard
@get:Nullable
abstract val url: String?

Functions

Link copied to clipboard
open override fun asDisabled(): Button
Link copied to clipboard
open override fun asEnabled(): Button
Link copied to clipboard
abstract suspend fun await(): ButtonEvent

Suspends until the component is used and all checks passed, and returns the event.

Link copied to clipboard

Suspends until the component is used and all checks passed, and returns the event, or null if the timeout has been reached.

Link copied to clipboard
abstract override fun getCustomId(): String
Link copied to clipboard
abstract override fun withCustomId(customId: String): Button
Link copied to clipboard
abstract override fun withDisabled(disabled: Boolean): Button
Link copied to clipboard
abstract override fun withEmoji(emoji: Emoji?): Button
Link copied to clipboard
abstract override fun withLabel(label: String): Button
Link copied to clipboard
open override fun withSku(sku: SkuSnowflake): Nothing
Link copied to clipboard
abstract override fun withStyle(style: ButtonStyle): Button
Link copied to clipboard
abstract override fun withUniqueId(uniqueId: Int): Button
Link copied to clipboard
open override fun withUrl(url: String): Nothing