Skip to main content

Class: HIRecordModule

HIRecordModule class provides methods to interact with Honkai Impact record module endpoints.

Constructors

constructor

new HIRecordModule(request, lang, region, uid)

Creates an instance of HSRRecordModule.

Parameters

NameTypeDescription
requestHTTPRequestThe HTTPRequest object used for making API requests.
langLanguageEnumThe language enum value.
regionnull | stringThe region string or null if not provided.
uidnull | numberThe UID number or null if not provided.

Defined in

src/client/hi/record/record.ts:36

Properties

lang

Private lang: LanguageEnum

The language enum value.

Defined in

src/client/hi/record/record.ts:38


region

Private region: null | string

The region string or null if not provided.

Defined in

src/client/hi/record/record.ts:39


request

Private request: HTTPRequest

The HTTPRequest object used for making API requests.

Defined in

src/client/hi/record/record.ts:37


uid

Private uid: null | number

The UID number or null if not provided.

Defined in

src/client/hi/record/record.ts:40

Methods

abyss

abyss(): Promise<IHIAbyss>

Retrieves the abyss information associated with the provided region and UID.

Throws

if the region or UID parameters are missing or failed to be filled.

Throws

if failed to retrieve data, please double-check the provided UID.

Remarks

This method is still in beta, as the response obtained from the server is not yet complete. If you would like to contribute, please send a more complete response by creating a pull request.

Returns

Promise<IHIAbyss>

A Promise that resolves to the HI abyss information object.

Defined in

src/client/hi/record/record.ts:147


arena

arena(): Promise<IHIArena>

Retrieves the arena information associated with the provided region and UID.

Throws

if the region or UID parameters are missing or failed to be filled.

Throws

if failed to retrieve data, please double-check the provided UID.

Remarks

This method is still in beta, as the response obtained from the server is not yet complete. If you would like to contribute, please send a more complete response by creating a pull request.

Returns

Promise<IHIArena>

A Promise that resolves to the HI arena information object.

Defined in

src/client/hi/record/record.ts:198


characters

characters(): Promise<IHICharacter[]>

Retrieves the characters associated with the provided region and UID.

Throws

if the region or UID parameters are missing or failed to be filled.

Throws

if failed to retrieve data, please double-check the provided UID.

Returns

Promise<IHICharacter[]>

A Promise that resolves to an array of HI characters.

Defined in

src/client/hi/record/record.ts:96


elysian

elysian(): Promise<IHIElysian>

Retrieves the elysian information associated with the provided region and UID.

Throws

if the region or UID parameters are missing or failed to be filled.

Throws

if failed to retrieve data, please double-check the provided UID.

Remarks

This method is still in beta, as the response obtained from the server is not yet complete. If you would like to contribute, please send a more complete response by creating a pull request.

Returns

Promise<IHIElysian>

A Promise that resolves to the HI elysian information object.

Defined in

src/client/hi/record/record.ts:249


records

records(): Promise<IHIRecord>

Retrieves the records associated with the provided region and UID.

Throws

if the region or UID parameters are missing or failed to be filled.

Throws

if failed to retrieve data, please double-check the provided UID.

Returns

Promise<IHIRecord>

A Promise that resolves to the HI record object.

Defined in

src/client/hi/record/record.ts:50