EnkaProfile
class EnkaProfile
The Enka.Network account
Properties
Methods
constructor
new EnkaProfile(data, system)
PARAMETER | TYPE | OPTIONAL | DEFAULT | DESCRIPTION |
---|---|---|---|---|
data | EnkaSystem | |||
system | JsonObject |
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
PARAMETER | TYPE | OPTIONAL | DEFAULT | DESCRIPTION |
---|---|---|---|---|
allowedHoyoTypes | HoyoType[] | undefined | ✔️ | undefined | hoyoTypes to filter |
fetchGameAccount
async
Returns: Promise<EnkaGameAccount<T>>
- the game account added to the Enka.Network account
PARAMETER | TYPE | OPTIONAL | DEFAULT | DESCRIPTION |
---|---|---|---|---|
hash | string | the game account hash |
fetchBuilds
async
Returns: Promise<{[characterId: string]: ExtractBuildType<T>[]}>
- the game character builds including saved builds in the Enka.Network game account
PARAMETER | TYPE | OPTIONAL | DEFAULT | DESCRIPTION |
---|---|---|---|---|
hash | string | the game account hash |