mirror of
https://github.com/yawaflua/Py-SPW.git
synced 2025-12-13 16:56:20 +02:00
Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
e4729e9cdf |
@@ -57,7 +57,7 @@ class _SkinPart:
|
|||||||
class Skin:
|
class Skin:
|
||||||
__visage_surgeplay_url = 'https://visage.surgeplay.com/'
|
__visage_surgeplay_url = 'https://visage.surgeplay.com/'
|
||||||
|
|
||||||
def __init__(self, profile: UserProfile):
|
def __init__(self, profile: str):
|
||||||
self._profile = profile
|
self._profile = profile
|
||||||
self._variant = SkinVariant(profile.skin_variant)
|
self._variant = SkinVariant(profile.skin_variant)
|
||||||
|
|
||||||
@@ -98,7 +98,7 @@ class User:
|
|||||||
self._uuid = mapi.get_uuid(nickname)
|
self._uuid = mapi.get_uuid(nickname)
|
||||||
if self._uuid is None:
|
if self._uuid is None:
|
||||||
raise MojangAccountNotFound(self._nickname)
|
raise MojangAccountNotFound(self._nickname)
|
||||||
self._profile = mapi.get_profile(self._uuid)
|
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def nickname(self) -> str:
|
def nickname(self) -> str:
|
||||||
@@ -108,12 +108,8 @@ class User:
|
|||||||
def uuid(self) -> str:
|
def uuid(self) -> str:
|
||||||
return self._uuid
|
return self._uuid
|
||||||
|
|
||||||
@property
|
|
||||||
def profile(self) -> UserProfile:
|
|
||||||
return self._profile
|
|
||||||
|
|
||||||
def get_skin(self) -> Skin:
|
def get_skin(self) -> Skin:
|
||||||
"""
|
"""
|
||||||
Получения объекта скина пользователя.
|
Получения объекта скина пользователя.
|
||||||
"""
|
"""
|
||||||
return Skin(self._profile)
|
return Skin(self._uuid)
|
||||||
|
|||||||
Reference in New Issue
Block a user