Skip to content

Commit

Permalink
Stop allowing positional arguments for API.destroy_mute
Browse files Browse the repository at this point in the history
Also improve endpoint parameters order to match Twitter API documentation
  • Loading branch information
Harmon758 committed Feb 14, 2021
1 parent 8c444c5 commit 009b54e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tweepy/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -823,12 +823,12 @@ def create_mute(self, **kwargs):
)

@payload('user')
def destroy_mute(self, *args, **kwargs):
def destroy_mute(self, **kwargs):
""" :reference: https://developer.twitter.com/en/docs/accounts-and-users/mute-block-report-users/api-reference/post-mutes-users-destroy
"""
return self.request(
'POST', 'mutes/users/destroy', *args, endpoint_parameters=(
'user_id', 'screen_name'
'POST', 'mutes/users/destroy', endpoint_parameters=(
'screen_name', 'user_id'
), **kwargs
)

Expand Down

0 comments on commit 009b54e

Please sign in to comment.