Fix reference to usernames parameter in Client.get_users
authorHarmon <Harmon758@gmail.com>
Wed, 24 Feb 2021 03:11:00 +0000 (21:11 -0600)
committerHarmon <Harmon758@gmail.com>
Wed, 24 Feb 2021 03:11:00 +0000 (21:11 -0600)
tweepy/client.py

index 9e41f7212a61a97949a6e2a27db2006c6115cdd2..abcb4c862be8e09eeb2d7e2204df0f4cbd0a79d5 100644 (file)
@@ -167,7 +167,7 @@ class Client:
         https://developer.twitter.com/en/docs/twitter-api/users/lookup/api-reference/get-users-by
         https://developer.twitter.com/en/docs/twitter-api/users/lookup/api-reference/get-users-by-username-username
         """
-        if ids is not None and username is not None:
+        if ids is not None and usernames is not None:
             raise TypeError("Expected IDs or usernames, not both")
 
         route = "/2/users"