text

fun text(text: String, init: Text.() -> 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(component: Component, init: Text.() -> Unit = {})

Adds a new text component to the message.

Parameters

component

The component to display.

init

Function to apply formatting in a declarative style.