diff --git a/mipac/models/lite/user.py b/mipac/models/lite/user.py index db4b1fd..3bce308 100644 --- a/mipac/models/lite/user.py +++ b/mipac/models/lite/user.py @@ -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: diff --git a/mipac/types/user.py b/mipac/types/user.py index efb0f84..53980a5 100644 --- a/mipac/types/user.py +++ b/mipac/types/user.py @@ -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):