diff --git a/roblox/presence.py b/roblox/presence.py index 7c9ef0ed..de34b8d4 100644 --- a/roblox/presence.py +++ b/roblox/presence.py @@ -19,6 +19,7 @@ if TYPE_CHECKING: from .client import Client + from .bases.baseuser import BaseUser from .utilities.types import UserOrUserId @@ -44,6 +45,7 @@ class Presence: job: The job of the root place that the user is playing or editing. universe: The universe the user is playing or editing. last_online: When the user was last online. + user: The user this presence belongs to. """ def __init__(self, client: Client, data: dict): @@ -74,7 +76,7 @@ def __init__(self, client: Client, data: dict): universe_id=data["universeId"] ) if data.get("universeId") else None - # self.user: BaseUser = BaseUser(self._client, data["userId"]) + self.user: BaseUser = client.get_base_user(data["userId"]) self.last_online: datetime = parse(data["lastOnline"]) def __repr__(self):