Skip to main content

TextAssets

class TextAssets

constructor

new TextAssets(id, client)
PARAMETERTYPEOPTIONALDEFAULTDESCRIPTION
idnumber
clientStarRail

Properties

id

Type: number


client

Type: StarRail


Methods

get

Returns: string

PARAMETERTYPEOPTIONALDEFAULTDESCRIPTION
langLanguageCode✔️

Throws: AssetsNotFoundError


getNullable

Returns: string | null

  • null instead of throwing AssetsNotFoundError.
PARAMETERTYPEOPTIONALDEFAULTDESCRIPTION
langLanguageCode✔️

isFormatted

Returns: boolean

  • whether the text is formatted or not.
PARAMETERTYPEOPTIONALDEFAULTDESCRIPTION
langLanguageCode✔️

getAsNullableFormattedText

Returns: FormattedText | null

  • null instead of throwing AssetsNotFoundError.
PARAMETERTYPEOPTIONALDEFAULTDESCRIPTION
langLanguageCode✔️