TextAssets
class TextAssets
Properties
Methods
constructor
new TextAssets(id, client)
PARAMETER | TYPE | OPTIONAL | DEFAULT | DESCRIPTION |
---|---|---|---|---|
id | number | |||
client | StarRail |
Properties
id
Type: number
client
Type: StarRail
Methods
get
Returns: string
PARAMETER | TYPE | OPTIONAL | DEFAULT | DESCRIPTION |
---|---|---|---|---|
lang | LanguageCode | ✔️ |
Throws: AssetsNotFoundError
getNullable
Returns: string | null
- null instead of throwing AssetsNotFoundError.
PARAMETER | TYPE | OPTIONAL | DEFAULT | DESCRIPTION |
---|---|---|---|---|
lang | LanguageCode | ✔️ |
isFormatted
Returns: boolean
- whether the text is formatted or not.
PARAMETER | TYPE | OPTIONAL | DEFAULT | DESCRIPTION |
---|---|---|---|---|
lang | LanguageCode | ✔️ |
getAsNullableFormattedText
Returns: FormattedText | null
- null instead of throwing AssetsNotFoundError.
PARAMETER | TYPE | OPTIONAL | DEFAULT | DESCRIPTION |
---|---|---|---|---|
lang | LanguageCode | ✔️ |