Skip to main content

Class: ZenlessZoneZero

Class representing the Zenless Zone Zero game.

Constructors​

constructor​

• new ZenlessZoneZero(options)

Create a new instance of ZenlessZoneZero.

Parameters​

NameTypeDescription
optionsIZzzOptionsThe options for the ZenlessZoneZero instance.

Defined in​

src/client/zzz/zzz.ts:73

Properties​

• Readonly cookie: ICookie

The cookie used for authentication.

Defined in​

src/client/zzz/zzz.ts:41


daily​

• Readonly daily: DailyModule

The Daily module for the Zenless Zone Zero game.

Defined in​

src/client/zzz/zzz.ts:24


lang​

• Private lang: LanguageEnum

The language of the Zenless Zone Zero account.

Defined in​

src/client/zzz/zzz.ts:65


record​

• Readonly record: ZzzRecordModule

The Record module for the Zenless Zone Zero game.

Defined in​

src/client/zzz/zzz.ts:36


redeem​

• Readonly redeem: RedeemModule

The Redeem module for the Zenless Zone Zero game.

Defined in​

src/client/zzz/zzz.ts:30


region​

• Readonly region: null | string

The region of the Zenless Zone Zero account.

Defined in​

src/client/zzz/zzz.ts:59


request​

• Private request: HTTPRequest

The request object used to make HTTP requests.

Defined in​

src/client/zzz/zzz.ts:47


uid​

• Readonly uid: null | number

The UID of the Zenless Zone Zero account.

Defined in​

src/client/zzz/zzz.ts:53

Methods​

dailyClaim​

▸ dailyClaim(): Promise<IDailyClaim>

Claim current reward

Alias

DailyModule.claim

Deprecated

Use through ZenlessZoneZero.daily.claim() instead

Returns​

Promise<IDailyClaim>

Defined in​

src/client/zzz/zzz.ts:155


dailyInfo​

▸ dailyInfo(): Promise<IDailyInfo>

Retrieves daily information.

Alias

DailyModule.info

Deprecated

Use through ZenlessZoneZero.daily.info() instead

Returns​

Promise<IDailyInfo>

Defined in​

src/client/zzz/zzz.ts:122


dailyReward​

▸ dailyReward(day?): Promise<IDailyReward>

Fetch reward from daily login based on day

Alias

DailyModule.reward

Deprecated

Use through ZenlessZoneZero.daily.reward() instead

Parameters​

NameTypeDefault valueDescription
daynull | numbernullnumber | null

Returns​

Promise<IDailyReward>

Defined in​

src/client/zzz/zzz.ts:144


dailyRewards​

▸ dailyRewards(): Promise<IDailyRewards>

Alias

DailyModule.rewards

Deprecated

Use through ZenlessZoneZero.daily.rewards() instead

Returns​

Promise<IDailyRewards>

Defined in​

src/client/zzz/zzz.ts:132


redeemCode​

▸ redeemCode(code): Promise<IRedeemCode>

Redeem Code

Alias

RedeemModule.claim

Deprecated

Use through ZenlessZoneZero.redeem.claim() instead

Parameters​

NameTypeDescription
codestringstring

Returns​

Promise<IRedeemCode>

Defined in​

src/client/zzz/zzz.ts:167