coc
v2
Code Overview
Clients and Logging In
Models
Utility Functions
Events
Custom Classes
Game Data
Exceptions
Discord Links Extension
Overview
API Reference
Examples
Examples
Discord Bot
Events
War Logs
Miscellaneous
Migrating to coc.py v1.0
Changelog
Acknowledgements
coc
»
Index
Edit on GitHub
Index
A
|
B
|
C
|
D
|
E
|
F
|
G
|
H
|
I
|
L
|
M
|
N
|
O
|
P
|
R
|
S
|
T
|
U
|
V
|
W
A
ability_time (coc.Hero attribute)
Achievement (class in coc)
achievement_cls (coc.Player attribute)
achievements (coc.Player attribute)
add_clan_updates() (coc.EventsClient method)
add_events() (coc.EventsClient method)
add_link() (coc.ext.discordlinks.DiscordLinkClient method)
add_player_updates() (coc.EventsClient method)
add_war_updates() (coc.EventsClient method)
attack_wins (coc.Player attribute)
(coc.RankedPlayer attribute)
attacker (coc.WarAttack property)
attacker_tag (coc.WarAttack attribute)
attacks (coc.ClanWar property)
(coc.ClanWarMember property)
(coc.WarClan attribute)
attacks_used (coc.WarClan attribute)
B
Badge (class in coc)
badge (coc.BaseClan attribute)
(coc.Clan attribute)
(coc.ClanWarLeagueClan attribute)
(coc.Label attribute)
(coc.PlayerClan attribute)
(coc.RankedClan attribute)
(coc.WarClan attribute)
BaseClan (class in coc)
BasePlayer (class in coc)
best_opponent_attack (coc.ClanWarMember property)
best_season (coc.LegendStatistics attribute)
best_trophies (coc.Player attribute)
best_versus_trophies (coc.Player attribute)
builder_elixir (coc.Resource attribute)
builder_hall (coc.Player attribute)
builder_troops (coc.Player attribute)
C
Clan (class in coc)
clan (coc.ClanMember attribute)
(coc.ClanWar attribute)
(coc.ClanWarLogEntry attribute)
(coc.ClanWarMember attribute)
clan_cls (coc.ClanMember attribute)
clan_previous_rank (coc.ClanMember attribute)
clan_rank (coc.ClanMember attribute)
ClanMember (class in coc)
clans (coc.ClanWarLeagueGroup attribute)
ClanWar (class in coc)
ClanWarLeagueClan (class in coc)
ClanWarLeagueClanMember (class in coc)
ClanWarLeagueGroup (class in coc)
ClanWarLogEntry (class in coc)
ClanWarMember (class in coc)
ClashOfClansException
Client (class in coc)
close() (coc.Client method)
(coc.EventsClient method)
coc.ACHIEVEMENT_ORDER (in module coc)
coc.BUILDER_TROOPS_ORDER (in module coc)
coc.DARK_ELIXIR_SPELL_ORDER (in module coc)
coc.DARK_ELIXIR_TROOP_ORDER (in module coc)
coc.ELIXIR_SPELL_ORDER (in module coc)
coc.ELIXIR_TROOP_ORDER (in module coc)
coc.HERO_ORDER (in module coc)
coc.HOME_TROOP_ORDER (in module coc)
coc.SIEGE_MACHINE_ORDER (in module coc)
coc.SPELL_ORDER (in module coc)
coc.SUPER_TROOP_ORDER (in module coc)
completion_info (coc.Achievement attribute)
cooldown (coc.Troop attribute)
correct_tag() (in module coc.utils)
country_code (coc.Location attribute)
create_army_link() (coc.Client method)
current_preparation (coc.WarRound attribute)
current_season (coc.LegendStatistics attribute)
current_war (coc.WarRound attribute)
D
dark_elixir (coc.Resource attribute)
days (coc.TimeDelta attribute)
defender (coc.WarAttack property)
defender_tag (coc.WarAttack attribute)
defense_count (coc.ClanWarMember attribute)
defense_wins (coc.Player attribute)
(coc.RankedPlayer attribute)
defenses (coc.ClanWarMember property)
(coc.WarClan attribute)
delete_link() (coc.ext.discordlinks.DiscordLinkClient method)
description (coc.Clan attribute)
destruction (coc.WarAttack attribute)
(coc.WarClan attribute)
DiscordLinkClient (class in coc.ext.discordlinks)
dispatch() (coc.Client method)
(coc.EventsClient method)
donations (coc.ClanMember attribute)
dps (coc.Hero attribute)
(coc.Troop attribute)
duration (coc.Troop attribute)
(coc.WarAttack attribute)
E
elixir (coc.Resource attribute)
end_time (coc.ClanWar attribute)
(coc.ClanWarLogEntry attribute)
event() (coc.EventsClient method)
EventsClient (class in coc)
exp_earned (coc.WarClan attribute)
exp_level (coc.ClanMember attribute)
F
find() (in module coc.utils)
Forbidden
from_timestamp() (in module coc.utils)
G
GatewayError
get() (in module coc.utils)
get_achievement() (coc.Player method)
get_attack() (coc.ClanWar method)
get_clan() (coc.Client method)
get_clan_labels() (coc.Client method)
get_clan_war() (coc.Client method)
get_clan_wars() (coc.Client method)
get_clans() (coc.Client method)
get_current_war() (coc.Client method)
get_current_wars() (coc.Client method)
get_defenses() (coc.ClanWar method)
get_detailed_clan() (coc.ClanMember method)
(coc.Player method)
(coc.RankedPlayer method)
get_detailed_members() (coc.BaseClan method)
(coc.Clan method)
(coc.ClanWarLeagueClan method)
(coc.PlayerClan method)
(coc.RankedClan method)
(coc.WarClan method)
get_hero() (coc.Client method)
(coc.Player method)
get_league() (coc.Client method)
get_league_group() (coc.Client method)
get_league_named() (coc.Client method)
get_league_war() (coc.Client method)
get_league_wars() (coc.Client method)
get_link() (coc.ext.discordlinks.DiscordLinkClient method)
get_linked_players() (coc.ext.discordlinks.DiscordLinkClient method)
get_links() (coc.ext.discordlinks.DiscordLinkClient method)
get_location() (coc.Client method)
get_location_clans() (coc.Client method)
get_location_clans_versus() (coc.Client method)
get_location_named() (coc.Client method)
get_location_players() (coc.Client method)
get_location_players_versus() (coc.Client method)
get_many_linked_players() (coc.ext.discordlinks.DiscordLinkClient method)
get_max_level_for_townhall() (coc.Hero class method)
(coc.Spell class method)
(coc.Troop class method)
get_member() (coc.Clan method)
(coc.ClanWar method)
(coc.WarClan method)
get_member_by() (coc.Clan method)
(coc.ClanWar method)
get_members() (coc.Client method)
get_pet() (coc.Client method)
get_player() (coc.Client method)
get_player_labels() (coc.Client method)
get_players() (coc.Client method)
get_season_end() (in module coc.utils)
get_season_rankings() (coc.Client method)
get_season_start() (in module coc.utils)
get_seasons() (coc.Client method)
get_spell() (coc.Client method)
(coc.Player method)
get_troop() (coc.Client method)
(coc.Player method)
get_warlog() (coc.Client method)
get_wars() (coc.ClanWarLeagueGroup method)
get_wars_for_clan() (coc.ClanWarLeagueGroup method)
gold (coc.Resource attribute)
ground_target (coc.Hero attribute)
(coc.Troop attribute)
H
Hero (class in coc)
hero_cls (coc.Player attribute)
hero_pets (coc.Player attribute)
heroes (coc.Player attribute)
hitpoints (coc.Hero attribute)
(coc.Troop attribute)
home_troops (coc.Player attribute)
hours (coc.TimeDelta attribute)
HTTPException
I
Icon (class in coc)
icon (coc.League attribute)
id (coc.Hero attribute)
(coc.Label attribute)
(coc.League attribute)
(coc.Location attribute)
(coc.Spell attribute)
(coc.Troop attribute)
in_game_name (coc.Role attribute)
info (coc.Achievement attribute)
InvalidArgument
InvalidCredentials
is_builder_base (coc.Achievement property)
is_completed (coc.Achievement property)
is_country (coc.Location attribute)
is_cwl (coc.ClanWar property)
is_dark_spell (coc.Spell attribute)
is_dark_troop (coc.Troop attribute)
is_elixir_spell (coc.Spell attribute)
is_elixir_troop (coc.Troop attribute)
is_fresh_attack (coc.WarAttack property)
is_home_base (coc.Achievement property)
is_league_entry (coc.ClanWarLogEntry property)
is_loaded (coc.Hero attribute)
(coc.Spell attribute)
(coc.Troop attribute)
is_max_for_townhall (coc.Hero property)
(coc.Spell property)
(coc.Troop property)
is_opponent (coc.ClanWarMember property)
(coc.WarClan property)
is_siege_machine (coc.Spell attribute)
(coc.Troop attribute)
is_super_troop (coc.Troop attribute)
is_valid_tag() (in module coc.utils)
L
lab_level (coc.Troop attribute)
Label (class in coc)
label_cls (coc.Clan attribute)
(coc.Player attribute)
labels (coc.Clan attribute)
(coc.Player attribute)
large (coc.Badge attribute)
League (class in coc)
league (coc.ClanMember attribute)
league_cls (coc.ClanMember attribute)
league_group (coc.ClanWar attribute)
legend_statistics (coc.Player attribute)
legend_trophies (coc.LegendStatistics attribute)
LegendStatistics (class in coc)
level (coc.BaseClan attribute)
(coc.Clan attribute)
(coc.ClanWarLeagueClan attribute)
(coc.Hero attribute)
(coc.PlayerClan attribute)
(coc.RankedClan attribute)
(coc.Spell attribute)
(coc.Troop attribute)
(coc.WarClan attribute)
load_game_data() (coc.Player method)
LoadGameData (class in coc)
localised_name (coc.League attribute)
(coc.Location attribute)
localised_short_name (coc.League attribute)
Location (class in coc)
location (coc.Clan attribute)
(coc.RankedClan attribute)
login() (coc.Client method)
(in module coc)
(in module coc.ext.discordlinks)
login_with_keys() (coc.Client method)
(in module coc)
loop (coc.Client attribute)
(coc.EventsClient attribute)
M
Maintenance
map_position (coc.ClanWarMember attribute)
max_level (coc.Hero attribute)
(coc.Spell attribute)
(coc.Troop attribute)
max_stars (coc.WarClan attribute)
medium (coc.Badge attribute)
(coc.Icon attribute)
member_cls (coc.Clan attribute)
member_count (coc.Clan attribute)
(coc.RankedClan attribute)
members (coc.Clan attribute)
(coc.ClanWar property)
(coc.ClanWarLeagueClan attribute)
(coc.WarClan attribute)
message (coc.HTTPException attribute)
min_original_level (coc.Troop attribute)
minutes (coc.TimeDelta attribute)
N
name (coc.Achievement attribute)
(coc.BaseClan attribute)
(coc.BasePlayer attribute)
(coc.Clan attribute)
(coc.ClanMember attribute)
(coc.ClanWarLeagueClan attribute)
(coc.ClanWarLeagueClanMember attribute)
(coc.ClanWarMember attribute)
(coc.Hero attribute)
(coc.Label attribute)
(coc.League attribute)
(coc.Location attribute)
(coc.PlayerClan attribute)
(coc.RankedClan attribute)
(coc.Spell attribute)
(coc.Troop attribute)
(coc.WarClan attribute)
(coc.WarLeague attribute)
NotFound
now (coc.Timestamp property)
number_of_rounds (coc.ClanWarLeagueGroup attribute)
O
opponent (coc.ClanWar attribute)
(coc.ClanWarLogEntry attribute)
order (coc.WarAttack attribute)
original_troop (coc.Troop attribute)
P
parse_army_link() (coc.Client method)
Player (class in coc)
PlayerClan (class in coc)
points (coc.Clan attribute)
(coc.RankedClan attribute)
preparation_start_time (coc.ClanWar attribute)
previous_best_opponent_attack (coc.ClanWarMember property)
previous_rank (coc.RankedClan attribute)
(coc.RankedPlayer attribute)
previous_season (coc.LegendStatistics attribute)
previous_war (coc.WarRound attribute)
PrivateWarLog
public_war_log (coc.Clan attribute)
R
range (coc.Hero attribute)
(coc.Spell attribute)
(coc.Troop attribute)
rank (coc.RankedClan attribute)
(coc.RankedPlayer attribute)
RankedClan (class in coc)
RankedPlayer (class in coc)
raw_time (coc.Timestamp attribute)
reason (coc.HTTPException attribute)
received (coc.ClanMember attribute)
regeneration_time (coc.Hero attribute)
remove_clan_updates() (coc.EventsClient method)
remove_events() (coc.EventsClient method)
remove_player_updates() (coc.EventsClient method)
remove_war_updates() (coc.EventsClient method)
required_th_level (coc.Hero attribute)
required_trophies (coc.Clan attribute)
reset_keys() (coc.Client method)
Resource (class in coc)
response (coc.HTTPException attribute)
result (coc.ClanWarLogEntry attribute)
Role (class in coc)
role (coc.ClanMember attribute)
rounds (coc.ClanWarLeagueGroup attribute)
run_forever() (coc.EventsClient method)
S
save() (coc.Badge method)
(coc.Icon method)
search_clans() (coc.Client method)
search_leagues() (coc.Client method)
search_locations() (coc.Client method)
season (coc.ClanWarLeagueGroup attribute)
seconds (coc.TimeDelta attribute)
seconds_until (coc.Timestamp property)
share_link (coc.BaseClan property)
(coc.BasePlayer property)
(coc.Clan property)
(coc.ClanMember property)
(coc.ClanWarLeagueClan property)
(coc.ClanWarLeagueClanMember property)
(coc.ClanWarMember property)
(coc.Player property)
(coc.PlayerClan property)
(coc.RankedClan property)
(coc.RankedPlayer property)
(coc.WarClan property)
siege_machines (coc.Player attribute)
small (coc.Badge attribute)
(coc.Icon attribute)
speed (coc.Hero attribute)
(coc.Troop attribute)
Spell (class in coc)
spell_cls (coc.Player attribute)
spells (coc.Player attribute)
star_count (coc.ClanWarMember property)
stars (coc.Achievement attribute)
(coc.WarAttack attribute)
(coc.WarClan attribute)
start_time (coc.ClanWar attribute)
state (coc.ClanWar attribute)
(coc.ClanWarLeagueGroup attribute)
status (coc.ClanWar property)
(coc.HTTPException attribute)
super_troops (coc.Player attribute)
T
tag (coc.BaseClan attribute)
(coc.BasePlayer attribute)
(coc.Clan attribute)
(coc.ClanMember attribute)
(coc.ClanWarLeagueClan attribute)
(coc.ClanWarLeagueClanMember attribute)
(coc.ClanWarMember attribute)
(coc.PlayerClan attribute)
(coc.RankedClan attribute)
(coc.WarClan attribute)
target (coc.Achievement attribute)
team_size (coc.ClanWar attribute)
(coc.ClanWarLogEntry attribute)
time (coc.Timestamp property)
TimeDelta (class in coc)
Timestamp (class in coc)
tiny (coc.Icon attribute)
total_seconds() (coc.TimeDelta method)
town_hall (coc.ClanWarLeagueClanMember attribute)
(coc.ClanWarMember attribute)
(coc.Player attribute)
town_hall_weapon (coc.Player attribute)
training_cost (coc.Spell attribute)
(coc.Troop attribute)
training_resource (coc.Spell attribute)
(coc.Troop attribute)
training_time (coc.Spell attribute)
(coc.Troop attribute)
Troop (class in coc)
troop_cls (coc.Player attribute)
troops (coc.Player attribute)
trophies (coc.ClanMember attribute)
type (coc.Clan attribute)
(coc.ClanWar property)
U
upgrade_cost (coc.Hero attribute)
(coc.Spell attribute)
(coc.Troop attribute)
upgrade_resource (coc.Hero attribute)
(coc.Spell attribute)
(coc.Troop attribute)
upgrade_time (coc.Hero attribute)
(coc.Spell attribute)
(coc.Troop attribute)
url (coc.Badge attribute)
(coc.Icon attribute)
V
value (coc.Achievement attribute)
verify_player_token() (coc.Client method)
versus_attack_wins (coc.Player attribute)
versus_points (coc.Clan attribute)
(coc.RankedClan attribute)
versus_trophies (coc.ClanMember attribute)
(coc.RankedPlayer attribute)
village (coc.Achievement attribute)
(coc.Hero attribute)
(coc.Spell attribute)
(coc.Troop attribute)
W
war (coc.ClanWarMember attribute)
(coc.WarAttack attribute)
war_frequency (coc.Clan attribute)
war_league (coc.Clan attribute)
war_losses (coc.Clan attribute)
war_stars (coc.Player attribute)
war_tag (coc.ClanWar attribute)
war_ties (coc.Clan attribute)
war_win_streak (coc.Clan attribute)
war_wins (coc.Clan attribute)
WarAttack (class in coc)
WarClan (class in coc)
WarLeague (class in coc)
WarRound (class in coc)
Read the Docs
v: v2
Versions
latest
stable
v2
0.3.x
rewrite
Downloads
On Read the Docs
Project Home
Builds