Skip to main content

EnkaProfile

class EnkaProfile

The Enka.Network account

constructor

new EnkaProfile(data, system)
PARAMETERTYPEOPTIONALDEFAULTDESCRIPTION
dataEnkaSystem
systemJsonObject

Properties

system

Type: EnkaSystem


username

Type: string


bio

Type: string


avatar

Type: string | null


imageUrl

Type: string | null


level

Type: number


signupState

Type: number


url

Type: string


Methods

fetchGameAccounts

async

Returns: Promise<EnkaGameAccount<EnkaLibrary<User, CharacterBuild>>[]>

  • the all game accounts added to the Enka.Network account
PARAMETERTYPEOPTIONALDEFAULTDESCRIPTION
allowedHoyoTypesHoyoType[] | undefined✔️undefinedhoyoTypes to filter

fetchGameAccount

async

Returns: Promise<EnkaGameAccount<T>>

  • the game account added to the Enka.Network account
PARAMETERTYPEOPTIONALDEFAULTDESCRIPTION
hashstringthe game account hash

fetchBuilds

async

Returns: Promise<{[characterId: string]: ExtractBuildType<T>[]}>

  • the game character builds including saved builds in the Enka.Network game account
PARAMETERTYPEOPTIONALDEFAULTDESCRIPTION
hashstringthe game account hash