Skip to content

Commit 3e280c5

Browse files
committed
1 parent 17ccbd7 commit 3e280c5

File tree

4 files changed

+18
-15
lines changed

4 files changed

+18
-15
lines changed

src/Discord/Helpers/CacheWrapper.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -419,7 +419,7 @@ protected function isZlibCompressed(string $data): bool
419419
* @param Part $part
420420
*
421421
* @return object|string
422-
*
422+
*
423423
* @todo PHP 8.5 clone($part, ['attributes' => $part->getRawAttributes()])
424424
*/
425425
public function serializer($part)

src/Discord/Helpers/LegacyCacheWrapper.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ public function has($key)
178178
* @param Part $part
179179
*
180180
* @return object
181-
*
181+
*
182182
* @todo PHP 8.5 clone($part, ['attributes' => $part->getRawAttributes()])
183183
*/
184184
public function serializer($part)

src/Discord/Parts/User/ClientStatus.php

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,10 @@
2222
*
2323
* @link https://discord.com/developers/docs/events/gateway-events#client-status-object
2424
*
25-
* @property ?string|null $desktop User's status set for an active desktop (Windows, Linux, Mac) application session.
26-
* @property ?string|null $mobile User's status set for an active mobile (iOS, Android) application session.
27-
* @property ?string|null $web User's status set for an active web (browser, bot user) application session.
25+
* @property ?string|null $desktop User's status set for an active desktop (Windows, Linux, Mac) application session.
26+
* @property ?string|null $mobile User's status set for an active mobile (iOS, Android) application session.
27+
* @property ?string|null $web User's status set for an active web (browser, bot user) application session.
28+
* @property ?string|null $embedded User's status set for an active embedded application session (Xbox, PlayStation, in-game).
2829
*/
2930
class ClientStatus extends Part
3031
{
@@ -35,5 +36,6 @@ class ClientStatus extends Part
3536
'desktop',
3637
'mobile',
3738
'web',
39+
'embedded',
3840
];
3941
}

src/Discord/Parts/WebSockets/PresenceUpdate.php

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -32,16 +32,17 @@
3232
*
3333
* @link https://discord.com/developers/docs/topics/gateway-events#presence
3434
*
35-
* @property User $user The user that the presence update affects.
36-
* @property string $guild_id The unique identifier of the guild that the presence update affects.
37-
* @property-read Guild|null $guild The guild that the presence update affects.
38-
* @property string $status The updated status of the user.
39-
* @property ExCollectionInterface<Activity>|Activity[] $activities The activities of the user.
40-
* @property-read Activity $game The updated game of the user.
41-
* @property ClientStatus $client_status Status of the client.
42-
* @property string|null $desktop_status Status of the user on their desktop client. Null if they are not active on desktop.
43-
* @property string|null $mobile_status Status of the user on their mobile client. Null if they are not active on mobile.
44-
* @property string|null $web_status Status of the user on their web client. Null if they are not active on web.
35+
* @property User $user The user that the presence update affects.
36+
* @property string $guild_id The unique identifier of the guild that the presence update affects.
37+
* @property-read Guild|null $guild The guild that the presence update affects.
38+
* @property string $status The updated status of the user.
39+
* @property ExCollectionInterface<Activity>|Activity[] $activities The activities of the user.
40+
* @property-read Activity $game The updated game of the user.
41+
* @property ClientStatus $client_status Status of the client.
42+
* @property string|null $desktop_status Status of the user on their desktop client. Null if they are not active on desktop.
43+
* @property string|null $mobile_status Status of the user on their mobile client. Null if they are not active on mobile.
44+
* @property string|null $web_status Status of the user on their web client. Null if they are not active on web.
45+
* @property string|null $embedded_status Status of the user on an embedded application (Xbox, PlayStation, in-game). Null if they are not active on an embedded application.
4546
*
4647
* @property-read Member $member The member that the presence update affects.
4748
* @property-read ExCollectionInterface<Role>|Role[] $roles Roles that the user has in the guild.

0 commit comments

Comments
 (0)