text

fun text(text: String, init: ClickableText.() -> Unit = {})

Adds a new text component to the message.

Parameters

text

The component's text to display.

init

Function to apply formatting in a declarative style.


fun text(text: String, color: TextColor)

Convenience method to build a simple colorized message. For more flexible messages, use the overloaded version.

Parameters

text

The message text.

color

The text color.


fun text(component: Component, init: ClickableText.() -> Unit = {})

Adds a new text component to the message.

Parameters

component

The component to display.

init

Function to apply formatting in a declarative style.