Skip to main content

TextAssets

Hierarchy

Index

Constructors

constructor

Properties

readonlyclient

client: StarRail

readonlyid

id: number

Methods

get

getAsFormattedText

getAsNullableFormattedText

  • getAsNullableFormattedText(lang?: LanguageCode): null | FormattedText

  • Parameters

    Returns null | FormattedText

    null instead of throwing AssetsNotFoundError.

getNullable


  • Parameters

    Returns null | string

    null instead of throwing AssetsNotFoundError.

isFormatted


  • Parameters

    Returns boolean

    whether the text is formatted or not.

toString

  • toString(): string
  • Returns string