Example #1
0
    def users(self) -> 'helix.Users':
        user_ids: List[int] = []
        if self.follow_type == 'followers':
            user_ids = [int(follow.from_id) for follow in self]
        elif self.follow_type == 'followings':
            user_ids = [int(follow.to_id) for follow in self]

        return helix.Users(self._api, user_ids)
Example #2
0
 def users(self, *args) -> 'helix.Users':
     return helix.Users(self.api(), *args)
Example #3
0
 def user(self) -> 'helix.User':
     return helix.Users(self._api, int(self.user_id))[0]
Example #4
0
 def user(self) -> 'helix.Users':
     return helix.Users(self._api, self.user_id)
Example #5
0
 def followed(self) -> 'helix.User':
     """
     This user is being followed by the follower
     :return: User being followed
     """
     return helix.Users(self._api, int(self.to_id))[0]
Example #6
0
 def follower(self) -> 'helix.User':
     """
     This user follows the followed
     :return: User following the user
     """
     return helix.Users(self._api, int(self.from_id))[0]
Example #7
0
 def users(self, *args, **kwargs) -> 'helix.Users':
     return helix.Users(self.api, *args, **kwargs)