# Class: HonkaiImpact

Class representing the Honkai Impact 3rd game.

# Table of contents

# Constructors

# Properties

# Methods

# Constructors

# constructor

new HonkaiImpact(options)

Create a new instance of HonkaiImpact.

# Parameters

Name Type Description
options IHi3Options The options for the HonkaiImpact instance.

# Defined in

src/games/hi/hi.ts:73 (opens new window)

# Properties

Readonly cookie: ICookie

The cookie used for authentication.

# Defined in

src/games/hi/hi.ts:39 (opens new window)


# daily

Readonly daily: DailyModule

The Daily module for the Honkai Impact 3rd game.

# Defined in

src/games/hi/hi.ts:25 (opens new window)


# lang

lang: LanguageEnum

The language of the Honkai Impact 3rd account.

# Defined in

src/games/hi/hi.ts:64 (opens new window)


# redeem

Readonly redeem: RedeemModule

The Redeem module for the Honkai Impact 3rd game.

# Defined in

src/games/hi/hi.ts:32 (opens new window)


# region

region: null | string

The region of the Honkai Impact 3rd account.

# Defined in

src/games/hi/hi.ts:58 (opens new window)


# request

Readonly request: Request

The request object used to make HTTP requests.

# Defined in

src/games/hi/hi.ts:46 (opens new window)


# uid

uid: null | number

The UID of the Honkai Impact 3rd account.

# Defined in

src/games/hi/hi.ts:52 (opens new window)

# Methods

# dailyClaim

dailyClaim(): Promise<IDailyClaim>

Claim current reward

Alias

DailyModule.claim

Deprecated

Use through HonkaiImpact.daily.claim() instead

# Returns

Promise<IDailyClaim>

# Defined in

src/games/hi/hi.ts:165 (opens new window)


# dailyInfo

dailyInfo(): Promise<IDailyInfo>

Retrieves daily information.

Alias

DailyModule.info

Deprecated

Use through HonkaiImpact.daily.info() instead

# Returns

Promise<IDailyInfo>

# Defined in

src/games/hi/hi.ts:135 (opens new window)


# dailyReward

dailyReward(day?): Promise<IDailyReward>

Fetch reward from daily login based on day

Alias

DailyModule.reward

Deprecated

Use through HonkaiImpact.daily.reward() instead

# Parameters

Name Type Default value Description
day null | number null number | null

# Returns

Promise<IDailyReward>

# Defined in

src/games/hi/hi.ts:155 (opens new window)


# dailyRewards

dailyRewards(): Promise<IDailyRewards>

Alias

DailyModule.rewards

Deprecated

Use through HonkaiImpact.daily.rewards() instead

# Returns

Promise<IDailyRewards>

# Defined in

src/games/hi/hi.ts:144 (opens new window)


# redeemCode

redeemCode(code): Promise<IRedeemCode>

Redeem Code

Alias

RedeemModule.claim

Deprecated

Use through HonkaiImpact.redeem.claim() instead

# Parameters

Name Type Description
code string string

# Returns

Promise<IRedeemCode>

# Defined in

src/games/hi/hi.ts:176 (opens new window)


# create

Static create(options): Promise<HonkaiImpact>

Create a new instance of HonkaiImpact using a Hoyolab account. If uid is not provided in the options, the account with the highest level will be used.

Static

# Parameters

Name Type Description
options IHi3Options The options for the HonkaiImpact instance.

# Returns

Promise<HonkaiImpact>

  • A promise that resolves with a new HonkaiImpact instance.

# Defined in

src/games/hi/hi.ts:116 (opens new window)