TextInputImpl

class TextInputImpl(yde: YDE, json: JsonNode, interactionId: GetterSnowFlake) : ComponentInteractionImpl, TextInput(source)

Constructors

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

Types

Link copied to clipboard
data class TextInputCreatorImpl(val customId: String, val style: TextInput.TextInputStyle, val label: String, val json: ObjectNode = JsonNodeFactory.instance.objectNode()) : TextInputCreator, ComponentImpl.ComponentCreator

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 the select menu.

Link copied to clipboard

Gets extra data sent with this component.

Link copied to clipboard
abstract val guild: Guild?

The guild of this component.

Link copied to clipboard
open override val initialValue: String?

The pre-filled value for 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 the text input.

Link copied to clipboard
open override val maxLength: Int?

The maximum length of the text input.

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 minLength: Int?

The minimum length of the text input.

Link copied to clipboard
open override val placeholder: String?

The placeholder for this component.

Link copied to clipboard
open override val required: Boolean?

Whether the text input is required.

Link copied to clipboard
open override val style: TextInput.TextInputStyle

The text input style.

Link copied to clipboard
abstract val type: ComponentType

The type of component interaction.

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.