FormattedString

constructor(contents: FormattedString, strings: List<FormattedStringObject> = contents.contents, isBold: Boolean? = contents.isBold, isItalic: Boolean? = contents.isItalic, isUnderlined: Boolean? = contents.isUnderlined, isStrikethrough: Boolean? = contents.isStrikethrough, isInverted: Boolean? = contents.isInverted, color: Formatting.FGColor? = contents.color, backgroundColor: Formatting.BGColor? = contents.backgroundColor)(source)

Parameters

contents

the FormattedString to copy

strings

the FormattedStringObjects that are wrapped in this FormattedString

isBold

if the FormattedString is bold

isItalic

if the FormattedString is italic

isUnderlined

if the FormattedString is underlined

isStrikethrough

if the FormattedString is strikethrough

isInverted

if the FormattedString is inverted

backgroundColor

constructor(contents: List<FormattedStringObject>, isBold: Boolean? = null, isItalic: Boolean? = null, isUnderlined: Boolean? = null, isStrikethrough: Boolean? = null, isInverted: Boolean? = null, color: Formatting.FGColor? = null, backgroundColor: Formatting.BGColor? = null)(source)

Creates a FormattedString with the given contents, isBold, isItalic, isUnderlined, isStrikethrough, isInverted, color and backgroundColor

Parameters

contents

the FormattedStringObjects that are wrapped in this FormattedString

isBold

if the FormattedString is bold

isItalic

if the FormattedString is italic

isUnderlined

if the FormattedString is underlined

isStrikethrough

if the FormattedString is strikethrough

isInverted

if the FormattedString is inverted

backgroundColor