Skip to main content

Class: CapitalRaidSeason

Represents a Capital Raid Season.

Constructors​

constructor​

• new CapitalRaidSeason(client, data)

Parameters​

NameType
clientClient
dataAPICapitalRaidSeason

Defined in​

struct/CapitalRaidSeason.ts:83

Properties​

state​

• state: "ended" | "ongoing"

The state of the raid season.

Defined in​

struct/CapitalRaidSeason.ts:45


startTime​

• startTime: Date

The start time of the raid season.

Defined in​

struct/CapitalRaidSeason.ts:48


endTime​

• endTime: Date

The end time of the raid season.

Defined in​

struct/CapitalRaidSeason.ts:51


capitalTotalLoot​

• capitalTotalLoot: number

The total loot collected from the capital.

Defined in​

struct/CapitalRaidSeason.ts:54


raidsCompleted​

• raidsCompleted: number

The number of raids completed.

Defined in​

struct/CapitalRaidSeason.ts:57


totalAttacks​

• totalAttacks: number

The total number of attacks.

Defined in​

struct/CapitalRaidSeason.ts:60


enemyDistrictsDestroyed​

• enemyDistrictsDestroyed: number

The number of enemy districts destroyed.

Defined in​

struct/CapitalRaidSeason.ts:63


offensiveReward​

• offensiveReward: number

The offensive reward.

Defined in​

struct/CapitalRaidSeason.ts:66


defensiveReward​

• defensiveReward: number

The defensive reward.

Defined in​

struct/CapitalRaidSeason.ts:69


members​

• members: APICapitalRaidSeasonMember[]

The members of the raid season.

Defined in​

struct/CapitalRaidSeason.ts:72


attackLog​

• attackLog: APICapitalRaidSeasonAttackLog[]

The attack log of the raid season.

Defined in​

struct/CapitalRaidSeason.ts:75


defenseLog​

• defenseLog: APICapitalRaidSeasonDefenseLog[]

The defense log of the raid season.

Defined in​

struct/CapitalRaidSeason.ts:78

Methods​

fetchMembers​

▸ fetchMembers(options?): Promise<Player[]>

Get Player info for every Player in the clan.

Parameters​

NameType
options?OverrideOptions

Returns​

Promise<Player[]>

Defined in​

struct/CapitalRaidSeason.ts:100