Skip to content

Commit e5c1a34

Browse files
feat(member; types): add member vr status (#3328)
* feat(member; types): add member vr status * chore: update changelog * refactor(types): swap variables as discord does * style(pre-commit): auto fixes from pre-commit.com hooks --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1 parent 52e85e7 commit e5c1a34

3 files changed

Lines changed: 12 additions & 0 deletions

File tree

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@ These changes are available on the `master` branch, but have not yet been releas
1212

1313
### Added
1414

15+
- Added `Member.vr_status` property.
16+
([#3328](https://github.com/Pycord-Development/pycord/pull/3328))
17+
1518
### Changed
1619

1720
### Fixed

discord/member.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -561,6 +561,14 @@ def desktop_status(self) -> Status:
561561
"""The member's status on the desktop client, if applicable."""
562562
return try_enum(Status, self._client_status.get("desktop", "offline"))
563563

564+
@property
565+
def vr_status(self) -> Status:
566+
"""The member's status set for an active virtual reality application session, if applicable.
567+
568+
.. versionadded:: 2.9
569+
"""
570+
return try_enum(Status, self._client_status.get("vr", "offline"))
571+
564572
@property
565573
def web_status(self) -> Status:
566574
"""The member's status on the web client, if applicable."""

discord/types/activity.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ class ClientStatus(TypedDict, total=False):
4747
desktop: str
4848
mobile: str
4949
web: str
50+
vr: str
5051

5152

5253
class ActivityTimestamps(TypedDict, total=False):

0 commit comments

Comments
 (0)