v2.4.0
v2.4.0
Additions:
-
Added support for Player Houses in the clan capital: :func:
coc.Player.player_house_elements -
Added optional cls parameters to all the :func:
coc.Client.get_location_...methods
in order to allow the usage of custom classes -
Added the :ref:
triggers -
Added some cached properties to raid classes: :func:
coc.RaidClan.looted,
:func:coc.RaidLogEntry.total_defensive_loot, :func:coc.RaidLogEntry.defense_attack_count
and :func:coc.RaidLogEntry.defensive_destroyed_district_count -
Added
before,afterandlimitparameters to :func:coc.Client.get_members, :func:coc.Client.get_warlogand
:func:coc.Client.get_raidlog -
Added :func:
coc.Client.search_war_leagues, :func:coc.Client.get_war_league,
:func:coc.Client.get_war_league_named, :func:coc.Client.search_capital_leagues,
:func:coc.Client.get_capital_leagueand :func:coc.Client.get_capital_league_named
Changes:
- Changed the default value of the :attr:
coc.Client.throttle_limitto a more reasonable value (30 instead of 10)
Bugs Fixed:
-
Fixed a bug which affected :func:
coc.Client.login_with_keys -
Fixed a bug which caused an overwrite of user set parameters if the client was used with a context manager
-
Fixed a bug which resulted in the client using more keys than the key_count was
-
Fixed a bug which caused a wrong throttle_limit if :func:
coc.Client.login_with_keysor
:func:coc.Client.login_with_tokenswas used -
Added previously missing Attribute :attr:
coc.RaidAttack.starswhich fixed a bug when checking
if two :class:coc.RaidAttackobjects are equal -
Fixed a bug in :func:
coc.WarEvents.new_war -
Fixed a bug in :func:
coc.Client.get_current_warwhich caused Exceptions or wrong return values
What's Changed (auto generated by github)
- update g8_2.4.0 by @doluk in #176
- Easier fix for login_with_tokens() by @AumJavalgikar in #175
- Fixed bug in keys deletion by @AumJavalgikar in #178
- add_cls_params by @Kuchenmampfer in #180
- Fixed the name of a variable in README.rst by @evgepab in #184
- Add trigger extension by @lukasthaler in #182
- Idk why no one noticed this was broken lol by @Kuchenmampfer in #189
- Fix versus trophies in event_example.py by @Pythonic-Rainbow in #190
- fix missing stars attribute bug by @Kuchenmampfer in #185
- extend_raid_log_entry by @Kuchenmampfer in #179
- fix generator return typing + add clan_tag to war class by @MagicTheDev in #188
- Improve eq functions in raid classes by @Kuchenmampfer in #186
- Rename first parameter of various classes hero/spell/troop by @MagicTheDev in #187
- Fix for get_current_war by @doluk in #192
- Bump to 2.4.0 by @doluk in #193
- Fix pyproject.toml by @doluk in #194
New Contributors
- @evgepab made their first contribution in #184
- @Pythonic-Rainbow made their first contribution in #190
Full Changelog: v2.3.1...v2.4.0