ComponentImpl

open class ComponentImpl(val yde: YDE, val json: JsonNode) : Component(source)

Inheritors

Constructors

Link copied to clipboard
constructor(yde: YDE, json: JsonNode)

Types

Link copied to clipboard
data class ActionRowCreator(val components: MutableList<ComponentImpl.ComponentCreator>, val json: ArrayNode = JsonNodeFactory.instance.arrayNode()) : ComponentImpl.ComponentCreator
Link copied to clipboard
data class ButtonCreator(val style: ButtonStyle, val customId: String? = null, val label: String?, val url: String? = null, val json: ObjectNode = JsonNodeFactory.instance.objectNode()) : ComponentImpl.ComponentCreator
Link copied to clipboard

Functions

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

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

Properties

Link copied to clipboard
open override val children: List<Component>

Gets a list of Components that are children of this component.

Link copied to clipboard
open override val customId: String?

The custom id of this button if it is not a link button.

Link copied to clipboard
open override val disabled: Boolean

Weather this component is disabled.

Link copied to clipboard
open override val json: JsonNode

The json representation of this entity.

Link copied to clipboard
open override val messageCompatible: Boolean

Weather this component is compatible with a message.

Link copied to clipboard
open override val modalCompatible: Boolean

Weather this component is compatible with a modal.

Link copied to clipboard
open override val type: ComponentType

The type of this component.

Link copied to clipboard
open override val yde: YDE

The main YDE instance.