ZackClements / berserk

Python client for the lichess API
Other
44 stars 18 forks source link

Add optional parameter 'reason' in decline_challenge() method #6

Closed Rowan441 closed 3 years ago

Rowan441 commented 3 years ago

As described in the documentation the Decline a challenge endpoint allows users to add a reason the challenge was declined.

This PR implements that option, and the parameter is optional so it's backwards compatible

codecov-commenter commented 3 years ago

Codecov Report

Merging #6 (b29b796) into master (7ece91d) will increase coverage by 0.43%. The diff coverage is 80.95%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master       #6      +/-   ##
==========================================
+ Coverage   67.70%   68.13%   +0.43%     
==========================================
  Files           8        8              
  Lines         709      725      +16     
==========================================
+ Hits          480      494      +14     
- Misses        229      231       +2     
Impacted Files Coverage Δ
berserk/clients.py 32.79% <42.85%> (+<0.01%) :arrow_up:
berserk/__init__.py 100.00% <100.00%> (ø)
berserk/enums.py 100.00% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 7ece91d...b29b796. Read the comment docs.