feat: アバターデコレーションに関するモデルを更新

pull/109/head
yupix 8 months ago
parent 0d11373a02
commit 434859831c
No known key found for this signature in database
GPG Key ID: 2FF705F5C56D9C06

@ -99,6 +99,28 @@ class AvatarDecoration:
"""
return self.__raw_avatar_decoration["url"]
@property
def offset_x(self) -> int | None:
"""Returns the x offset of the avatar decoration.
Returns
-------
int | None
The x offset of the avatar decoration.
"""
return self.__raw_avatar_decoration.get("offset_x")
@property
def offset_y(self) -> int | None:
"""Returns the y offset of the avatar decoration.
Returns
-------
int | None
The y offset of the avatar decoration.
"""
return self.__raw_avatar_decoration.get("offset_y")
class PartialUser[PU: IPartialUser]:
def __init__(self, raw_user: PU, *, client: ClientManager) -> None:

@ -81,6 +81,8 @@ class IAvatarDecoration(TypedDict):
angle: NotRequired[int]
flip_h: NotRequired[bool]
url: str
offset_x: NotRequired[int]
offset_y: NotRequired[int]
class NotificationRecieveConfigType(TypedDict):

Loading…
Cancel
Save