Clan and Player Attributes
Achievement
- class coc.Achievement
Represents a Clash of Clans Achievement.
- name
str
: The name of the achievement.
- stars
int
: The current stars achieved for the achievement.
- value
int
: The number of X things attained for this achievement.
- target
int
: The number of X things required to complete this achievement.
- info
str
: Information regarding the achievement.
- completion_info
str
: Information regarding completion of the achievement.
- village
str
: Eitherhome
orbuilderBase
.
- property is_builder_base: bool
Returns a boolean which indicates if the achievement belongs to the builder base
- Type:
bool
- property is_completed: bool
Returns a boolean which indicates whether the achievement is completed (3 stars achieved)
- Type:
bool
- property is_home_base: bool
Returns a boolean which indicates if the achievement belongs to the home base
- Type:
bool
Capital District
Label
Base League
League
Legend Statistics
- class coc.LegendStatistics
Represents the Legend Statistics for a player.
- legend_trophies
int
- The player’s legend trophies
- current_season
Season
: Legend statistics for this season.
- previous_season
Season
: Legend statistics for the previous season.
- best_season
Season
: Legend statistics for the player’s best season.
- previous_builder_base_season
Season
: Legend statistics for the previous builder base season.
- best_builder_base_season
Season
: Legend statistics for the player’s best builder base season.
PlayerHouseElement
- class coc.PlayerHouseElement
Represents an element of a player house.
- id
int
: The id of the house element
- type
PlayerHouseElementType
: The type of the house element
PlayerHouseElementType
Role
Returns a string that is rendered as the role appears in-game, ie Co-Leader
or Elder
.
str(member.role)
will also return this.
Note
The in-game role Elder
is named admin
in the API responses.