enkaNetwork
GitHubNPM
  • ✨Overview
  • πŸ“¦Quick Start | Installation
  • πŸ–‡οΈTypeScript usage
  • βš™οΈClass description
    • πŸ“EnkaNetwork
    • πŸ’ΎAssetsUpdater
    • πŸ”ŽAssetsFinder
  • πŸ”—Methods
    • πŸ‘€fetchUser
    • πŸ•΅οΈfetchProfileInfo
    • 🌟fetchEnkaProfile
    • πŸ“•fetchEnkaHoyos
    • πŸ”ΉfetchEnkaHoyo
    • 🟣fetchEnkaHoyoBuilds
    • 🚩setLanguage
  • πŸŽ“Models
    • EnkaProfile
    • Character
      • Character
      • CharacterConstellation
      • CharacterReliquary
      • CharacterSkill
      • CharacterStats
      • CharacterWeapon
    • PlayerInfo
      • CharacterPreview
      • Namecard
      • PlayerInfo
      • ProfilePicture
    • Fetcher
      • FetchEnkaHoyosBuilds
      • FetchEnkaHoyo
      • FetchEnkaProfile
      • FetchUserUID
      • FetchProfileInfo
  • ✏️Examples
    • 1️⃣Simple usage
    • 2️⃣Express API
    • 3️⃣Fastify API
    • 4️⃣Telegram bot
Powered by GitBook
On this page
  • How to use?
  • Examples

Was this helpful?

  1. Class description

AssetsFinder

PreviousAssetsUpdaterNextfetchUser

Last updated 1 year ago

Was this helpful?

AssetsFinder - a class that helps to find assets and localization that are used inside

You can access characters, namecards, costumes, weapons, reliquaries, reliquarySets, constellations and skills

They allow you to find what you need in assets and its localization

How to use?

When referring to something, look at the hints. Usually, they can be used to find data about an entity using getById() and the name of this entity in your chosen localization using getName()

When searching for characters, it is recommended to use two parameters at once, if possible. Since due to the characteristics of the travelers, you will not get his elements without specifying a skillDepotId

Examples

Getting data for character Β«Raiden ShogunΒ» by his id

enka.assets.characters.getById(10000052);

and get their name

Language in getName() is required!

const character = enka.assets.characters.getById(10000052);

enka.assets.characters.getName(character, "RU"); // Райдэн
enka.assets.characters.getById(10000007); // First in list Anemo Lumine
enka.assets.characters.getById(10000007, 704); // Anemo Lumine
// Where is 705??
enka.assets.characters.getById(10000007, 706); // Geo Lumine
enka.assets.characters.getById(10000007, 707); // Electro Lumine
enka.assets.characters.getById(10000007, 708); // Dendro Lumine
const costume = enka.assets.costumes.getById(200201);

enka.assets.costumes.getName(costume, "EN"); // Springbloom Missive

and etc

βš™οΈ
πŸ”Ž
EnkaNetwork