Skip to content

Commit

Permalink
Stop allowing positional arguments besides id for API.destroy_status
Browse files Browse the repository at this point in the history
  • Loading branch information
Harmon758 committed Feb 10, 2021
1 parent ed363e6 commit 876c8ca
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tweepy/api.py
Expand Up @@ -392,11 +392,11 @@ def update_with_media(self, filename, *args, **kwargs):
)

@payload('status')
def destroy_status(self, id, *args, **kwargs):
def destroy_status(self, id, **kwargs):
""" :reference: https://developer.twitter.com/en/docs/tweets/post-and-engage/api-reference/post-statuses-destroy-id
"""
return self.request(
'POST', f'statuses/destroy/{id}', *args, endpoint_parameters=(
'POST', f'statuses/destroy/{id}', endpoint_parameters=(
'trim_user',
), **kwargs
)
Expand Down

0 comments on commit 876c8ca

Please sign in to comment.