Skip to main content

EnkaGameAccount

class EnkaGameAccount

The game account added to the Enka.Network account.

constructor

new EnkaGameAccount(data, system, username)
PARAMETERTYPEOPTIONALDEFAULTDESCRIPTION
dataEnkaSystem
systemJsonObject
usernamestring

Properties

username

Enka.Network username, not in-game nickname

Type: string


hash

Type: string


hoyoType

Type: HoyoType


user

GenshinUser or StarRailUser

Type: ExtractUserType<T> | null


uid

Type: number | null


isVerified

Type: boolean


isPublic

Type: boolean


isUidPublic

Type: boolean


isLivePublic

Type: boolean


verificationCode

Type: string | null


verificationExpires

Type: Date | null


verificationCodeRetries

Type: number | null


region

The region of the server where the account was created
https://cdn.discordapp.com/attachments/971472744820650035/1072868537472925767/image.png

Type: GameServerRegion


order

Type: number


characterOrder

Type: {[characterId: string]: number} | null


url

Type: string


Methods

fetchBuilds

async

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

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