clashroyaleclansv2/clashroyaleclans.py
async def toggle_private(self, clankey):
        """Toggle Private approval of new recruits"""
        clankey = self.get_static_clankey(clankey)
        self.static_clandata[clankey]["requirements"][
            "approval"
        ] = not self.static_clandata[clankey]["requirements"]["approval"]
        await self.save_clan_data()
        return self.static_clandata[clankey]["requirements"]["approval"]
Toggle Private approval of new recruits
Toggle Private approval of new recruits
Toggle Private approval of new recruits
async def toggle_private(self, clankey):
        clankey = self.get_static_clankey(clankey)
        self.static_clandata[clankey]["requirements"][
            "approval"
        ] = not self.static_clandata[clankey]["requirements"]["approval"]
        await self.save_clan_data()
        return self.static_clandata[clankey]["requirements"]["approval"]
async def toggle_private ( self , clankey ) : clankey = self . get_static_clankey ( clankey ) self . static_clandata [ clankey ] [ "requirements" ] [ "approval" ] = not self . static_clandata [ clankey ] [ "requirements" ] [ "approval" ] await self . save_clan_data ( ) return self . static_clandata [ clankey ] [ "requirements" ] [ "approval" ]
Toggle Private approval of new recruits
Toggle Private approval of new recruits
"""Toggle Private approval of new recruits"""
self
clankey