message

abstract fun message(body: String)

Sets a plain message body without template parameters.


abstract fun message(template: String, vararg args: Any?)

Sets a structured message with template and parameters.

Parameters

template

The message template (use %s for substitution, %% for literal %)

args

Arguments to substitute into the template via toString()