📕fetchEnkaHoyos

async function to fetch enkaProfile accounts by username from the site.

Params

  • username: string - enka.network profile username.

  • language?: "CHS" | "CHT" | "DE" | "EN" | "ES" | "FR" | "ID" | "JP" | "KR" | "PT" | "RU" | "TH" | "VI" (not required) - the language to be used in the localization of names (characters, artifacts, etc.). Default is language selected in the class.

Example

import { EnkaNetwork } from "enkanetwork";

const enka = new EnkaNetwork({ language: "EN", assets: { languages: ["RU"] } });

enka.fetchEnkaHoyos("Algoinde").then(console.log); // with enka.network profile username
enka.fetchEnkaHoyos("Algoinde", "RU").then(console.log); // with enka.network profile username and language for localization

Return array of

FetchEnkaHoyo

Last updated