Constructs a new Genshin object.
The options object used to configure the object.
ReadonlycookieThe cookie object to be used in requests.
ReadonlydailyThe DailyModule object provides an interface to interact with the daily check-in feature in Genshin Impact.
ReadonlydiaryThe GenshinDiaryModule object provides an interface to interact with the user diary feature in Genshin Impact.
ReadonlyrecordThe GenshinRecordModule object provides an interface to interact with the user record feature in Genshin Impact.
ReadonlyredeemThe RedeemModule object provides an interface to interact with the code redemption feature in Genshin Impact.
ReadonlyregionThe region of the user, if available.
ReadonlytcgThe GenshinTCGModule object provides an interface to interact with the user diary feature in Genshin Impact.
ReadonlyuidThe UID of the user, if available.
Getter for the account property.
The current value of the account property.
Setter for the account property. Prevents from changing the value once set
The game object to set as the account.
Retrieves the Genshin characters of the user.
Returns the summary information of Genshin Impact game characters
number[] Characters ID
Genshin.record.charactersSummary()
Use through Genshin.record.charactersSummary() instead
Claim current reward
Retrieves daily information.
Retrieve the daily note information for a Genshin Impact user.
Get the daily reward for a specific day or the current day
number | null
Retrieve daily rewards information.
Returns the diary details of a given type and month for a user
DiaryEnum
DiaryMonthEnum
Returns the diary information of a given month for a user
Get user's Genshin Impact record
Redeems a code for a specific account.
string
Retrieves information about the player's performance in the Spiral Abyss.
SpiralAbyssScheduleEnum
StaticcreateCreate a new instance of the GenshinImpact class asynchronously.
The options object used to configure the object.
A promise that resolves with a new Genshin instance.
The
Genshinclass provides an interface to interact with Genshin Impact-related features on the Mihoyo website. It contains references to various modules such asDailyModule,RedeemModule,GenshinRecordModule, andGenshinDiaryModulewhich allow you to perform various operations related to these features.