withFormat

inline fun String.withFormat(style: Style = Style.EMPTY): FormattedCharSequence

Returns an immutable Component from the receiver with style.


inline fun String.withFormat(formatting: ChatFormatting): FormattedCharSequence

Returns an immutable Component from the receiver with style.