Update User.py

Profile больше не работает
This commit is contained in:
Dima YaFlay
2023-10-25 08:47:23 +03:00
committed by GitHub
parent 21ee8e1fa5
commit e4729e9cdf

View File

@@ -57,7 +57,7 @@ class _SkinPart:
class Skin:
__visage_surgeplay_url = 'https://visage.surgeplay.com/'
def __init__(self, profile: UserProfile):
def __init__(self, profile: str):
self._profile = profile
self._variant = SkinVariant(profile.skin_variant)
@@ -98,7 +98,7 @@ class User:
self._uuid = mapi.get_uuid(nickname)
if self._uuid is None:
raise MojangAccountNotFound(self._nickname)
self._profile = mapi.get_profile(self._uuid)
@property
def nickname(self) -> str:
@@ -108,12 +108,8 @@ class User:
def uuid(self) -> str:
return self._uuid
@property
def profile(self) -> UserProfile:
return self._profile
def get_skin(self) -> Skin:
"""
Получения объекта скина пользователя.
"""
return Skin(self._profile)
return Skin(self._uuid)