Internal
Constructs a DiaryModule instance
An instance of the Request class to make HTTP requests
A LanguageEnum value for the language of the user
A string value for the region of the user
A number value for the UID of the user
Returns the diary details of a given type and month for a user
A DiaryEnum value for the type of diary details requested
A DiaryMonthEnum value for the month of the diary details requested. Default is CURRENT.
A promise that resolves to an IGenshinDiaryDetail object
NodeHoyoError when the uid or region parameter is missing or invalid, or when the type or month parameter is invalid
This method sends a request to the Genshin Impact API to get the daily note information for a user. The user's region and UID must be set before calling this method, otherwise an error will be thrown.
Returns the diary information of a given month for a user
A DiaryMonthEnum value for the month of the diary information requested. Default is CURRENT.
A promise that resolves to an IGenshinDiaryInfo object
NodeHoyoError when the uid or region parameter is missing or invalid
This method sends a request to the Genshin Impact API to get the daily note information for a user. The user's region and UID must be set before calling this method, otherwise an error will be thrown.
A module to interact with the Genshin Impact diary endpoints of the Hoyolab API