コード例 #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)
コード例 #2
0
ファイル: helix.py プロジェクト: Tathomp/TwitchClipScrapper
 def users(self, *args) -> 'helix.Users':
     return helix.Users(self.api(), *args)
コード例 #3
0
ファイル: stream.py プロジェクト: klagroix/Twitch-Python
 def user(self) -> 'helix.User':
     return helix.Users(self._api, int(self.user_id))[0]
コード例 #4
0
 def user(self) -> 'helix.Users':
     return helix.Users(self._api, self.user_id)
コード例 #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]
コード例 #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]
コード例 #7
0
 def users(self, *args, **kwargs) -> 'helix.Users':
     return helix.Users(self.api, *args, **kwargs)