Skip to main content

TextAssets

class TextAssets

constructor

new TextAssets(id, enka, convertToHtmlFormat, directory)
PARAMETERTYPEOPTIONALDEFAULTDESCRIPTION
idnumber
enkaEnkaClient
convertToHtmlFormat✔️false
directorystring✔️

Properties

id

Type: number


enka

Type: EnkaClient


convertToHtmlFormat

Type: boolean


directory

Type: string | null


Methods

get

Returns: string

PARAMETERTYPEOPTIONALDEFAULTDESCRIPTION
langLanguageCode✔️

Throws: AssetsNotFoundError


getNullable

Returns: string | null

  • null instead of throwing AssetsNotFoundError.
PARAMETERTYPEOPTIONALDEFAULTDESCRIPTION
langLanguageCode✔️

setConvertToHtmlFormat

Returns: this

PARAMETERTYPEOPTIONALDEFAULTDESCRIPTION
convertToHtmlFormatboolean

toString

Returns: string