Interface IGenshinOptions

Interface representing the options for the Genshin Impact API. Inherits from IHoyolabOptions.

interface IGenshinOptions {
    cookie: string | Pick<ICookie,
        | "ltokenV2"
        | "ltuidV2"
        | "cookieToken"
        | "cookieTokenV2">;
    lang?: LanguageEnum;
    region?: GenshinRegion;
    uid?: number;
}

Hierarchy (view full)

Properties

cookie: string | Pick<ICookie,
    | "ltokenV2"
    | "ltuidV2"
    | "cookieToken"
    | "cookieTokenV2">

The cookie used to authenticate the request. This can be either a string or an ICookie object.

The language to use for the request. This should be a value of LanguageEnum.

region?: GenshinRegion

The region of the Genshin Impact player.

uid?: number

The UID of the Genshin Impact player.