clashroyaleclansv2/clashroyaleclans.py
async def clan_data(self, clankey: str, req_data: str = None):
        """Return clan info stored in config"""
        all_clans = await self.config.clans()
        key = self.get_static_clankey(clankey)
        if key:
            if req_data:
                return all_clans[key][req_data]
            else:
                return all_clans[key]
        return None
Return clan info stored in config
Return clan info stored in config
Return clan info stored in config
async def clan_data(self, clankey: str, req_data: str = None):
        all_clans = await self.config.clans()
        key = self.get_static_clankey(clankey)
        if key:
            if req_data:
                return all_clans[key][req_data]
            else:
                return all_clans[key]
        return None
async def clan_data ( self , clankey : str , req_data : str = None ) : all_clans = await self . config . clans ( ) key = self . get_static_clankey ( clankey ) if key : if req_data : return all_clans [ key ] [ req_data ] else : return all_clans [ key ] return None
Return clan info stored in config
Return clan info stored in config
"""Return clan info stored in config"""
self
clankey
str
req_data
str