@@ -1240,6 +1240,40 @@ async def get_location_clans(
12401240 data = await self .http .get_location_clans (location_id , limit = limit , before = before , after = after )
12411241 return [RankedClan (data = n , client = self ) for n in data ["items" ]]
12421242
1243+ async def get_location_clans_capital (
1244+ self , location_id : int = "global" , * , limit : int = None , before : str = None , after : str = None
1245+ ) -> List [RankedClan ]:
1246+ """Get clan capital rankings for a specific location
1247+
1248+ Parameters
1249+ -----------
1250+ location_id : int
1251+ The Location ID to search for. Defaults to all locations (``global``).
1252+ limit : int
1253+ The number of results to fetch.
1254+ before : str, optional
1255+ For use with paging. Not implemented yet.
1256+ after: str, optional
1257+ For use with paging. Not implemented yet.
1258+
1259+ Raises
1260+ ------
1261+ Maintenance
1262+ The API is currently in maintenance.
1263+
1264+ GatewayError
1265+ The API hit an unexpected gateway exception.
1266+
1267+
1268+ Returns
1269+ --------
1270+ List[:class:`RankedClan`]
1271+ The top clans for the requested location.
1272+ """
1273+
1274+ data = await self .http .get_location_clans_capital (location_id , limit = limit , before = before , after = after )
1275+ return [RankedClan (data = n , client = self ) for n in data ["items" ]]
1276+
12431277 async def get_location_players (
12441278 self , location_id : int = "global" , * , limit : int = None , before : str = None , after : str = None
12451279 ) -> List [RankedPlayer ]:
0 commit comments