Skip to main content

StarRail

Implements

Index

Constructors

constructor

Properties

readonlycachedAssetsManager

cachedAssetsManager: CachedAssetsManager

readonlyhoyoType

hoyoType: 1

readonlyoptions

options: ClientOptions

The options the client was instantiated with

Methods

close

  • close(): void
  • Clear all running tasks in the client.


    Returns void

fetchEnkaStarRailAccount

  • fetchEnkaStarRailAccount(username: string, hash: string): Promise<EnkaGameAccount<StarRail>>

  • 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

  • fetchEnkaStarRailAccounts(username: string): Promise<EnkaGameAccount<StarRail>[]>

  • Parameters

    • username: string

      enka.network username, not in-game nickname

    Returns Promise<EnkaGameAccount<StarRail>[]>

    the starrail accounts added to the Enka.Network account

fetchEnkaStarRailBuilds

  • fetchEnkaStarRailBuilds(username: string, hash: string): Promise<{}>

  • 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

getAllCharacters


  • Parameters

    • playableOnly: boolean = true

    Returns CharacterData[]

    all character data

getAllLightCones

  • getAllLightCones(excludeTestLightCones?: boolean): LightConeData[]

  • Parameters

    • excludeTestLightCones: boolean = true

    Returns LightConeData[]

    all light cone data

getAllRelics

getCharacterBuild

getUser