add check_aliases command

This commit is contained in:
2025-07-14 17:20:17 +03:00
parent a289d24698
commit b41f303d3c
2 changed files with 25 additions and 0 deletions

View File

@@ -178,3 +178,7 @@ class E621:
if 'success' in r:
return []
return [E621PostVersion.from_dict(p) for p in r]
async def get_tag_aliases(self, name: str) -> List[str]:
r = (await self.client.get('/tag_aliases.json', params={'search[antecedent_name]': name})).json()
return [alias['consequent_name'] for alias in r]