StarRail
Implements
- unknown<StarRailUser, StarRailCharacterBuild>
Index
Constructors
constructor
Parameters
options: Partial<ClientOptions>
Returns StarRail
Properties
readonlycachedAssetsManager
readonlyhoyoType
readonlyoptions
Methods
close
Clear all running tasks in the client.
Returns void
fetchEnkaStarRailAccount
Parameters
username: string
enka.network username, not in-game nickname
hash: string
EnkaGameAccount hash
Returns Promise<EnkaGameAccount<StarRail>>
the starrail account with provided hash
fetchEnkaStarRailAccounts
Parameters
username: string
enka.network username, not in-game nickname
Returns Promise<EnkaGameAccount<StarRail>[]>
the starrail accounts added to the Enka.Network account
fetchEnkaStarRailBuilds
Parameters
username: string
enka.network username, not in-game nickname
hash: string
EnkaGameAccount hash
Returns Promise<{}>
the starrail character builds including saved builds in Enka.Network account
fetchUser
Parameters
uid: string | number
options: Partial<FetchOptions> = {}
Returns Promise<StarRailUser>
getAllCharacters
Parameters
playableOnly: boolean = true
Returns CharacterData[]
all character data
getAllLightCones
Parameters
excludeTestLightCones: boolean = true
Returns LightConeData[]
all light cone data
getAllRelics
Returns RelicData[]
all relic data
getCharacterBuild
Parameters
data: JsonObject
username: string
hash: string
Returns StarRailCharacterBuild
getUser
Parameters
data: JsonObject
Returns StarRailUser
The options the client was instantiated with