From: Harmon Date: Tue, 27 Apr 2021 12:35:00 +0000 (-0500) Subject: Change Client.unhide_reply parameter name to match API endpoint X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=23899f55ffc91768dd559bd79a19f884cfd53b91;p=tweepy.git Change Client.unhide_reply parameter name to match API endpoint --- 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"]