Class: ClanWarLog
Constructors
constructor
• new ClanWarLog(client, data)
Parameters
| Name | Type |
|---|---|
client | Client |
data | APIClanWarLog |
Defined in
Properties
result
• result: null | "win" | "lose" | "tie"
The result of the war.
Defined in
endTime
• endTime: Date
The Date that battle day ends at.
Defined in
teamSize
• teamSize: number
The number of players on each side.
Defined in
attacksPerMember
• attacksPerMember: null | number
The number of attacks each member has.
Defined in
clan
• clan: WarLogClan
The home clan.
Defined in
opponent
• opponent: WarLogClan
The opposition clan.
Defined in
Accessors
type
• get type(): "friendly" | "cwl" | "normal"
Returns either friendly, cwl or normal.
Returns
"friendly" | "cwl" | "normal"
Defined in
isFriendly
• get isFriendly(): boolean
Whether this is a friendly war.
Returns
boolean
Defined in
isCWL
• get isCWL(): boolean
Whether this is a CWL.
Returns
boolean
Defined in
isNormal
• get isNormal(): boolean
Whether this is a normal war.
Returns
boolean