Class: ZenlessZoneZero
Class representing the Zenless Zone Zero game.
Constructors
constructor
• new ZenlessZoneZero(options)
Create a new instance of ZenlessZoneZero.
Parameters
| Name | Type | Description |
|---|---|---|
options | IZzzOptions | The options for the ZenlessZoneZero instance. |
Defined in
Properties
cookie
• Readonly cookie: ICookie
The cookie used for authentication.
Defined in
daily
• Readonly daily: DailyModule
The Daily module for the Zenless Zone Zero game.
Defined in
lang
• Private lang: LanguageEnum
The language of the Zenless Zone Zero account.
Defined in
record
• Readonly record: ZzzRecordModule
The Record module for the Zenless Zone Zero game.
Defined in
redeem
• Readonly redeem: RedeemModule
The Redeem module for the Zenless Zone Zero game.
Defined in
region
• Readonly region: null | string
The region of the Zenless Zone Zero account.
Defined in
request
• Private request: HTTPRequest
The request object used to make HTTP requests.
Defined in
uid
• Readonly uid: null | number
The UID of the Zenless Zone Zero account.
Defined in
Methods
dailyClaim
▸ dailyClaim(): Promise<IDailyClaim>
Claim current reward
Alias
Deprecated
Use through ZenlessZoneZero.daily.claim() instead
Returns
Promise<IDailyClaim>
Defined in
dailyInfo
▸ dailyInfo(): Promise<IDailyInfo>
Retrieves daily information.
Alias
Deprecated
Use through ZenlessZoneZero.daily.info() instead
Returns
Promise<IDailyInfo>
Defined in
dailyReward
▸ dailyReward(day?): Promise<IDailyReward>
Fetch reward from daily login based on day
Alias
Deprecated
Use through ZenlessZoneZero.daily.reward() instead
Parameters
| Name | Type | Default value | Description |
|---|---|---|---|
day | null | number | null | number | null |
Returns
Promise<IDailyReward>
Defined in
dailyRewards
▸ dailyRewards(): Promise<IDailyRewards>
Alias
Deprecated
Use through ZenlessZoneZero.daily.rewards() instead
Returns
Promise<IDailyRewards>
Defined in
redeemCode
▸ redeemCode(code): Promise<IRedeemCode>
Redeem Code
Alias
Deprecated
Use through ZenlessZoneZero.redeem.claim() instead
Parameters
| Name | Type | Description |
|---|---|---|
code | string | string |
Returns
Promise<IRedeemCode>