ButtonImpl

open class ButtonImpl(yde: YDE, json: JsonNode, interactionId: GetterSnowFlake) : ComponentInteractionImpl, Button(source)

Constructors

Link copied to clipboard
constructor(componentInteractionImpl: ComponentInteractionImpl)
constructor(yde: YDE, json: JsonNode, interactionId: GetterSnowFlake)

Functions

Link copied to clipboard
open override fun reply(embed: Embed): Reply
open override fun reply(content: String): Reply

Replies to an interaction.

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

Converts this entity to a string using the io.github.ydwk.ydwk.util.EntityToStringBuilder.

Properties

Link copied to clipboard

The application id of this component.

Link copied to clipboard
abstract val channel: TextChannel?

The channel were this component was triggered.

Link copied to clipboard
abstract val components: List<Component>

Gets a list of Components that were sent with this component.

Link copied to clipboard
open override val customId: String?

The custom id of this button.

Link copied to clipboard

Gets extra data sent with this component.

Link copied to clipboard
open override val disabled: Boolean

The disabled state of this button.

Link copied to clipboard
open override val emoji: Emoji?

The emoji of this button.

Link copied to clipboard
abstract val guild: Guild?

The guild of this component.

Link copied to clipboard

The interaction id.

Link copied to clipboard
abstract val interactionToken: String

The interaction token.

Link copied to clipboard

The interaction type of this component.

Link copied to clipboard
abstract val json: JsonNode

The json representation of this entity.

Link copied to clipboard
open override val label: String?

The label of this button.

Link copied to clipboard
abstract val member: Member?

The member who triggered this component.

Link copied to clipboard
abstract val message: Message

The message corresponding to this component.

Link copied to clipboard
open override val style: ButtonStyle

The button style of this button.

Link copied to clipboard
open override val type: ComponentType

The type of component interaction.

Link copied to clipboard
open override val url: URL?

The url of this button if it is a link button.

Link copied to clipboard
abstract val user: User?

The user who triggered this component.

Link copied to clipboard
abstract val yde: YDE

The main YDE instance.