Add trim_user endpoint parameter for API.destroy_status
authorHarmon <Harmon758@gmail.com>
Wed, 10 Feb 2021 04:04:52 +0000 (22:04 -0600)
committerHarmon <Harmon758@gmail.com>
Wed, 10 Feb 2021 04:04:52 +0000 (22:04 -0600)
tweepy/api.py

index 60a87ee9f78f0518c57c5f55f873fb768dee1b66..2415d3f80a94cccd0b0cd13ca7aec9046292f73d 100644 (file)
@@ -396,7 +396,9 @@ class API:
         """ :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, **kwargs
+            'POST', f'statuses/destroy/{id}', *args, endpoint_parameters=(
+                'trim_user',
+            ), **kwargs
         )
 
     @payload('status')