Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ These changes are available on the `master` branch, but have not yet been releas

### Added

- Added `Member.vr_status` property.
([#3328](https://github.com/Pycord-Development/pycord/pull/3328))

### Changed

### Fixed
Expand Down
8 changes: 8 additions & 0 deletions discord/member.py
Original file line number Diff line number Diff line change
Expand Up @@ -561,6 +561,14 @@ def desktop_status(self) -> Status:
"""The member's status on the desktop client, if applicable."""
return try_enum(Status, self._client_status.get("desktop", "offline"))

@property
def vr_status(self) -> Status:
"""The member's status set for an active virtual reality application session, if applicable.

.. versionadded:: 2.9
"""
return try_enum(Status, self._client_status.get("vr", "offline"))

@property
def web_status(self) -> Status:
"""The member's status on the web client, if applicable."""
Expand Down
1 change: 1 addition & 0 deletions discord/types/activity.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ class ClientStatus(TypedDict, total=False):
desktop: str
mobile: str
web: str
vr: str


class ActivityTimestamps(TypedDict, total=False):
Expand Down