diff --git a/examples/fetch.py b/examples/fetch.py index e59ec63..878300d 100644 --- a/examples/fetch.py +++ b/examples/fetch.py @@ -8,8 +8,8 @@ client = Client('', '') # Fetches a list of all users you're currently chatting with, as `User` objects users = client.fetchAllUsers() -print("users' IDs: {}".format(user.uid for user in users)) -print("users' names: {}".format(user.name for user in users)) +print("users' IDs: {}".format([user.uid for user in users])) +print("users' names: {}".format([user.name for user in users])) # If we have a user id, we can use `fetchUserInfo` to fetch a `User` object @@ -18,7 +18,7 @@ user = client.fetchUserInfo('')[''] users = client.fetchUserInfo('<1st user id>', '<2nd user id>', '<3rd user id>') print("user's name: {}".format(user.name)) -print("users' names: {}".format(users[k].name for k in users)) +print("users' names: {}".format([users[k].name for k in users])) # `searchForUsers` searches for the user and gives us a list of the results,