πEnkaNetwork
EnkaNetwork - the class in which all interaction with enka.network takes place
const enka = new EnkaNetwork();In the example on the last page, we used this class without parameters. Let's figure out what parameters it takes
language
languageThe language to be used in the localization of names (characters, artifacts, etc.). Default is Β«ENΒ»
Full list of supported languages - EN, RU, CHS, CHT, DE, ES, FR, ID, JP, KR, PT, TH, VI
const enka = new EnkaNetwork({ language: "EN" });
caching
cachingThe value of this parameter is to enable caching of responses. The default value is Β«trueΒ»
false - to disable caching
userAgent
In paragraph 3, the enka.network API documentation states that using custom userAgent is a good practice. Default is Β«enkanetwork@versionΒ»
false - to disable userAgent in requests
string - to set a custom UserAgent in requests
uiAssetsPath
uiAssetsPathThe path to which the {icon}.png string will be added. Default is Β«https://enka.network/ui/Β»
You can also use another resource
And now we get links to UI assets from this resource

or you can specify the path to your local folder with ui assets

assets
assetsParams for AssetsUpdater
Last updated
Was this helpful?