Skip to main content

Class: ClanWarLog

Constructors

constructor

new ClanWarLog(client, data)

Parameters

NameType
clientClient
dataAPIClanWarLog

Defined in

struct/ClanWarLog.ts:83

Properties

result

result: null | "win" | "lose" | "tie"

The result of the war.

Defined in

struct/ClanWarLog.ts:63


endTime

endTime: Date

The Date that battle day ends at.

Defined in

struct/ClanWarLog.ts:66


teamSize

teamSize: number

The number of players on each side.

Defined in

struct/ClanWarLog.ts:69


attacksPerMember

attacksPerMember: null | number

The number of attacks each member has.

Defined in

struct/ClanWarLog.ts:72


clan

clan: WarLogClan

The home clan.

Defined in

struct/ClanWarLog.ts:75


opponent

opponent: WarLogClan

The opposition clan.

Defined in

struct/ClanWarLog.ts:78

Accessors

type

get type(): "friendly" | "cwl" | "normal"

Returns either friendly, cwl or normal.

Returns

"friendly" | "cwl" | "normal"

Defined in

struct/ClanWarLog.ts:94


isFriendly

get isFriendly(): boolean

Whether this is a friendly war.

Returns

boolean

Defined in

struct/ClanWarLog.ts:101


isCWL

get isCWL(): boolean

Whether this is a CWL.

Returns

boolean

Defined in

struct/ClanWarLog.ts:106


isNormal

get isNormal(): boolean

Whether this is a normal war.

Returns

boolean

Defined in

struct/ClanWarLog.ts:111