Stylable

interface Stylable

A part of a message to which text formatting can be applied.

Inheritors

Functions

Link copied to clipboard
abstract fun bold(bold: Boolean = true)

Sets the font to bold.

Link copied to clipboard
abstract fun color(color: TextColor)

Sets the color for the component.

Link copied to clipboard
abstract fun italic(italic: Boolean = true)

Sets the font to italic.

Link copied to clipboard
abstract fun obfuscated(obfuscated: Boolean = true)

Obfuscates text by switching each letter between multiple characters. Will result in non-readable text.

Link copied to clipboard
abstract fun strikeThrough(strikeThrough: Boolean = true)

Strikes the text through.

Link copied to clipboard
abstract fun underlined(underlined: Boolean = true)

Underlines the text.