hoverable

fun hoverable(text: String, builder: HoverTextBuilder.() -> Unit): TextComponent

DSL function to easily create a hoverable text component.

Return

The TextComponent with hover and click events applied.

Parameters

text

The initial text to display in the message.

builder

The builder function to configure the text component.