Raids
Raid Log Entry
- class coc.RaidLogEntry
Represents a Clash of Clans Raid Log Entry
- state
str: The state of the raid log entry. Currently, the statesongoingandendedare known.
- total_loot
int: The amount of total loot
- completed_raid_count
int: The number of completed raids
- attack_count
int: The total number of attacks
- destroyed_district_count
int: The number of destroyed enemy districts
- offensive_reward
int: The amount of offensive reward
- defensive_reward
int: The amount of defensive reward
- defense_attack_count
The total amount of opponent attacks in the raid weekend.
- Type:
int
- defense_log
A list of raid clans which represents all the defensive raids of a season.
- Type:
List[
RaidClan]
- defensive_destroyed_district_count
The total amount of districts destroyed by opponents.
- Type:
int
- get_member(tag: str) RaidMember | None
Get a member of the clan for the given tag, or
Noneif not found.- Returns:
The clan member who matches the tag.
- Return type:
Optional[
RaidMember]
- members
A list of members that are in the raid.
- Type:
List[
RaidMember]
- total_defensive_loot
The total amount of loot taken by all opponents of the raid weekend.
- Type:
int
Raid District
- class coc.RaidDistrict
Represents a Raid Clan Capital District.
- id
int: The district’s unique ID as given by the API.
- name
str: The district’s name.
- hall_level
str: The district’s hall level.
- destruction
float: The districts destruction percentage
- attack_count
int: The districts attack count
- looted
int: The districts total looted
- attacks
List[
RaidAttack]: The attacks on this district. Can be empty due to missing parts in the api response
- raid_log_entry
RaidLogEntry- The raid log entry this district belongs to
Raid Attack
- class coc.RaidAttack
Represents a Raid attack
- attacker_tag
str- The attacker tag
- attacker_name
str- The attacker name
- destruction
float- The destruction achieved
- raid_log_entry
RaidLogEntry- The raid log entry this attack belongs to
- district
RaidDistrict- The raid district this attack belongs to
- stars
int- The raid attacks stars
- property attacker: RaidMember
Returns the attacking player.
- Type: