TextAssets
class TextAssets
constructor
new TextAssets(id, enka, convertToHtmlFormat, directory)
PARAMETER | TYPE | OPTIONAL | DEFAULT | DESCRIPTION |
---|---|---|---|---|
id | number | |||
enka | EnkaClient | |||
convertToHtmlFormat | ✔️ | false | ||
directory | string | ✔️ |
Properties
id
Type: number
enka
Type: EnkaClient
convertToHtmlFormat
Type: boolean
directory
Type: string | null
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 | ✔️ |
setConvertToHtmlFormat
Returns: this
PARAMETER | TYPE | OPTIONAL | DEFAULT | DESCRIPTION |
---|---|---|---|---|
convertToHtmlFormat | boolean |
toString
Returns: string