Skip to main content

Class: GenshinTCGModule

Represents a module for the Genshin Impact TCG.

Constructors

constructor

new GenshinTCGModule(request, lang, region, uid)

Creates an instance of the GenshinTCGModule.

Parameters

NameTypeDescription
requestHTTPRequestThe HTTP request object.
langLanguageEnumThe language enumeration for the module.
regionnull | stringThe region string or null.
uidnull | numberThe UID number or null.

Defined in

src/client/gi/tcg/tcg.ts:37

Properties

lang

Private lang: LanguageEnum

The language enumeration for the module.

Defined in

src/client/gi/tcg/tcg.ts:39


region

Private region: null | string

The region string or null.

Defined in

src/client/gi/tcg/tcg.ts:40


request

Private request: HTTPRequest

The HTTP request object.

Defined in

src/client/gi/tcg/tcg.ts:38


uid

Private uid: null | number

The UID number or null.

Defined in

src/client/gi/tcg/tcg.ts:41

Methods

basicInfo

basicInfo(): Promise<IGenshinTCGBasicInfo>

Retrieves basic information for the Genshin Impact TCG.

Throws

If there is an error retrieving the data.

Returns

Promise<IGenshinTCGBasicInfo>

The Genshin Impact TCG basic information.

Defined in

src/client/gi/tcg/tcg.ts:50


cards

cards(): Promise<IGenshinTCGCards>

Retrieves the cards for the Genshin Impact TCG.

Throws

If there is an error retrieving the data.

Returns

Promise<IGenshinTCGCards>

The Genshin Impact TCG cards.

Defined in

src/client/gi/tcg/tcg.ts:91


challangeDeck

challangeDeck(schedule_id, deck_id): Promise<IGenshinTCGDeck>

Retrieves the challenge deck for the Genshin Impact TCG.

Throws

If there is an error retrieving the data.

Parameters

NameTypeDescription
schedule_idnumberSchedule ID from GenshinTCGModule.challengeSchedule()
deck_idnumberDeck ID from GenshinTCGModule.challengeRecord()

Returns

Promise<IGenshinTCGDeck>

The Genshin Impact TCG challenge record.

Defined in

src/client/gi/tcg/tcg.ts:280


challengeRecord

challengeRecord(schedule_id): Promise<IGenshinTCGRecord>

Retrieves the challenge record for the Genshin Impact TCG.

Throws

If there is an error retrieving the data.

Parameters

NameTypeDescription
schedule_idnumberSchedule ID from GenshinTCGModule.challengeSchedule()

Returns

Promise<IGenshinTCGRecord>

The Genshin Impact TCG challenge record.

Defined in

src/client/gi/tcg/tcg.ts:236


challengeSchedule

challengeSchedule(): Promise<IGenshinTCGScheduleBasic[]>

Retrieves the challenge schedule for the Genshin Impact TCG.

Throws

If there is an error retrieving the data.

Returns

Promise<IGenshinTCGScheduleBasic[]>

The Genshin Impact TCG challenge schedule.

Defined in

src/client/gi/tcg/tcg.ts:194


matchs

matchs(): Promise<IGenshinTCGMatchs>

Retrieves the match data for the Genshin Impact TCG.

Throws

If there is an error retrieving the data.

Returns

Promise<IGenshinTCGMatchs>

The Genshin Impact TCG match data.

Defined in

src/client/gi/tcg/tcg.ts:153