thesadru / genshin.py

API wrapper for HoYoLAB/Miyoushe API built on asyncio and pydantic.
https://thesadru.github.io/genshin.py
MIT License
401 stars 73 forks source link

Check if HoYoLAB account is verified with LTUID #72

Closed TofuBoy05 closed 1 year ago

TofuBoy05 commented 1 year ago

Hello, I want to know if it is possible to check if an account is verified with only LTUID. Screenshot_20221020-133428.jpg

thesadru commented 1 year ago

Try

user = await client.get_hoyolab_user(hoyolab_id)
print(user.certification)

If user.certification.type == 2 it should be an artist.