Add retry handling to the HTTPClient - if a request fails with a GatewayError (or TimeoutError), it will sleep and then retry for a maximum of 5 times. Super Minion, Super Wizard, Ice Hound, Log Launcher and Invisibility Spells were added.
3.6.0
Bugs Fixed: --- - Issues causing the documentation to not build properly have been fixed. - Fixed a few spelling errors in the documentation.
Additions: --- - Added `coc.Client.ip` to manually overwrite the IP address used for generating API keys. This is especially useful for using the API with a proxy.
3.5.3
Bugs Fixed: --- - `coc.Badge.url` and :`coc.Icon.url` now use differently sized fallbacks if the default URL is not available. The same is true if `coc.Badge.save` or `coc.Icon.save` are called without the optional size parameter - corrected the default value for the `league_id` parameter of `coc.Client.get_seasons` to point at Legends league and fixed a type hint in `coc.Client.get_season_rankings` as well as a few doc strings
3.5.2
Additions: --- - added the option to change the base url of the API in `coc.Client` to allow an easier use of proxies - added the new events `coc.PlayerEvents.equipment_change` and `coc.PlayerEvents.active_equipment_change` - added the new names for builder base related events to `coc.ClanEvents` and `coc.PlayerEvents` - added the change in the api model for ClanMembers. `coc.ClanMember` now has a new attribute `town_hall` which is the town hall level.
Fixes: --- - Fixed an issue with the renaming of `versus_trophies` to `builder_base_trophies` and similar name changes in the event related code
3.5.1
Additions: --- - added the option to change the base url of the API in `coc.Client` to allow an easier use of proxies - added the new events `coc.PlayerEvents.equipment_change` and `coc.PlayerEvents.active_equipment_change` - added the new names for builder base related events to `coc.ClanEvents` and `coc.PlayerEvents` - added the change in the api model for ClanMembers. `coc.ClanMember` now has a new attribute `town_hall` which is the town hall level.
Fixes: --- - Fixed an issue with the renaming of `versus_trophies` to `builder_base_trophies` and similar name changes in the event related code
3.4.2
Additions: --- - added the new Angry Jelly pet to `coc.PETS_ORDER` - updated static data to reflect the April 2024 update