clashroyaleclansv2/clashroyaleclans.py
async def clan_member_data(
        self, clankey: str, memberkey: str, req_data: str = None
    ):
        """Return clan member's dict"""
        data = await self.clan_data(clankey, "member_list")
        for member in data:
            if member["tag"] == memberkey or member["name"] == memberkey:
                if req_data:
                    return member[req_data]
                else:
                    return member
        return None
Return clan member's dict
Return clan member's dict
Return clan member ' s dict
async def clan_member_data(
        self, clankey: str, memberkey: str, req_data: str = None
    ):
        data = await self.clan_data(clankey, "member_list")
        for member in data:
            if member["tag"] == memberkey or member["name"] == memberkey:
                if req_data:
                    return member[req_data]
                else:
                    return member
        return None
async def clan_member_data ( self , clankey : str , memberkey : str , req_data : str = None ) : data = await self . clan_data ( clankey , "member_list" ) for member in data : if member [ "tag" ] == memberkey or member [ "name" ] == memberkey : if req_data : return member [ req_data ] else : return member return None
Return clan member's dict
Return clan member ' s dict
"""Return clan member's dict"""
self
clankey
str
memberkey
str
req_data
str