From 23899f55ffc91768dd559bd79a19f884cfd53b91 Mon Sep 17 00:00:00 2001 From: Harmon Date: Tue, 27 Apr 2021 07:35:00 -0500 Subject: [PATCH] Change Client.unhide_reply parameter name to match API endpoint --- tweepy/client.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tweepy/client.py b/tweepy/client.py index 7befd56..f453761 100644 --- a/tweepy/client.py +++ b/tweepy/client.py @@ -193,7 +193,7 @@ class Client: user_auth=True )[0]["hidden"] - def unhide_reply(self, tweet_id): + def unhide_reply(self, id): """Unhides a reply to a Tweet. Parameters @@ -212,7 +212,7 @@ class Client: https://developer.twitter.com/en/docs/twitter-api/tweets/hide-replies/api-reference/put-tweets-id-hidden """ return self._make_request( - "PUT", f"/2/tweets/{tweet_id}/hidden", json={"hidden": False}, + "PUT", f"/2/tweets/{id}/hidden", json={"hidden": False}, user_auth=True )[0]["hidden"] -- 2.25.1