From ed363e6141ba467f27a312bca92fafd8b303db4c Mon Sep 17 00:00:00 2001 From: Harmon Date: Tue, 9 Feb 2021 22:04:52 -0600 Subject: [PATCH] Add trim_user endpoint parameter for API.destroy_status --- tweepy/api.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tweepy/api.py b/tweepy/api.py index 60a87ee..2415d3f 100644 --- a/tweepy/api.py +++ b/tweepy/api.py @@ -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') -- 2.25.1