Skip to main content

Class: WarLogClan

Represents War Log Clan.

If this is called via opponent, then attackCount and expEarned will be null. For CWL entries name and tag are null.

Constructors

constructor

new WarLogClan(data)

Parameters

NameType
dataAPIWarLogClan

Defined in

struct/ClanWarLog.ts:44

Properties

name

name: null | string

The clan's name. This property is null CWL entries.

Defined in

struct/ClanWarLog.ts:15


tag

tag: null | string

The clan's tag. This property is null CWL entries.

Defined in

struct/ClanWarLog.ts:18


badge

badge: Badge

The clan's badge.

Defined in

struct/ClanWarLog.ts:21


level

level: number

The clan's level.

Defined in

struct/ClanWarLog.ts:24


stars

stars: number

Number of stars achieved by this clan.

Defined in

struct/ClanWarLog.ts:27


destruction

destruction: number

The destruction achieved as a percentage.

Defined in

struct/ClanWarLog.ts:30


expEarned

expEarned: null | number

Total XP earned by clan this war. This property is null for the opponent.

Defined in

struct/ClanWarLog.ts:36


attackCount

attackCount: null | number

Total attacks used by this clan. This property is null for the opponent.

Defined in

struct/ClanWarLog.ts:42

Accessors

get shareLink(): null | string

Get clan's formatted link to open clan in-game.

Returns

null | string

Defined in

struct/ClanWarLog.ts:56