Constructs a new Genshin
object.
The options object used to configure the object.
Readonly
cookieThe cookie object to be used in requests.
Readonly
dailyThe DailyModule
object provides an interface to interact with the daily check-in feature in Genshin Impact.
Readonly
diaryThe GenshinDiaryModule
object provides an interface to interact with the user diary feature in Genshin Impact.
Readonly
recordThe GenshinRecordModule
object provides an interface to interact with the user record feature in Genshin Impact.
Readonly
redeemThe RedeemModule
object provides an interface to interact with the code redemption feature in Genshin Impact.
Readonly
regionThe region of the user, if available.
Readonly
tcgThe GenshinTCGModule
object provides an interface to interact with the user diary feature in Genshin Impact.
Readonly
uidThe 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
Static
createCreate 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
Genshin
class provides an interface to interact with Genshin Impact-related features on the Mihoyo website. It contains references to various modules such asDailyModule
,RedeemModule
,GenshinRecordModule
, andGenshinDiaryModule
which allow you to perform various operations related to these features.