Skip to content

Commit 3cad697

Browse files
shaydewaelcolinloretzadvaith1
authored
New activity types for SET_ACTIVITY (#7033)
* add rich presence activity types * Update docs/Change_Log.md Co-authored-by: Colin Loretz <[email protected]> * rename field * one more * Update docs/topics/RPC.md Co-authored-by: advaith <[email protected]> --------- Co-authored-by: Colin Loretz <[email protected]> Co-authored-by: advaith <[email protected]>
1 parent 325bf4c commit 3cad697

File tree

4 files changed

+14
-2
lines changed

4 files changed

+14
-2
lines changed

docs/Change_Log.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,14 @@
11
# Change Log
22

3+
## Supported Activity Types for SET_ACTIVITY
4+
5+
#### July 25, 2024
6+
7+
The [`SET_ACTIVITY` RPC command](#DOCS_TOPICS_RPC/setactivity) has been updated to support 3 additional [activity types](#DOCS_TOPICS_GATEWAY_EVENTS/activity-object-activity-types): Listening (`2`), Watching (`3`), and Competing (`5`). Previously, it only accepted Playing (`0`).
8+
9+
> warn
10+
> The [Game SDK](#DOCS_GAME_SDK_ACTIVITIES) has not been updated to support setting [`ActivityType`](#DOCS_GAME_SDK_ACTIVITIES/data-models-activitytype-enum), and is still limited to read-only (to handle events that you receive from Discord).
11+
312
## Application Emoji
413

514
#### July 18, 2024

docs/game_sdk/Activities.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ For more detailed information and documentation around the Rich Presence feature
8484

8585
For more details about the activity types, [see Gateway documentation](#DOCS_TOPICS_GATEWAY_EVENTS//activity-object-activity-types).
8686

87-
`ActivityType` is strictly for the purpose of handling events that you receive from Discord; though the SDK/our API will not reject a payload with an `ActivityType` sent, it will be discarded and will not change anything in the client.
87+
`ActivityType` is strictly for the purpose of handling events that you receive from Discord; though the SDK will not reject a payload with an `ActivityType` sent, it will be discarded and will not change anything in the client.
8888

8989
###### ActivityJoinRequestReply Enum
9090

docs/topics/Gateway_Events.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1049,7 +1049,7 @@ Active sessions are indicated with an "online", "idle", or "dnd" string per plat
10491049

10501050
| ID | Name | Format | Example |
10511051
|----|-----------|---------------------|--------------------------------------|
1052-
| 0 | Game | Playing {name} | "Playing Rocket League" |
1052+
| 0 | Playing | Playing {name} | "Playing Rocket League" |
10531053
| 1 | Streaming | Streaming {details} | "Streaming Rocket League" |
10541054
| 2 | Listening | Listening to {name} | "Listening to Spotify" |
10551055
| 3 | Watching | Watching {name} | "Watching YouTube Together" |

docs/topics/RPC.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -992,6 +992,9 @@ Used to update a user's Rich Presence.
992992

993993
###### Set Activity Argument Structure
994994

995+
> info
996+
> When using `SET_ACTIVITY`, the `activity` object is limited to a `type` of Playing (`0`), Listening (`2`), Watching (`3`), or Competing (`5`).
997+
995998
| Field | Type | Description |
996999
|----------|----------------------------------------------------------------|-----------------------------------------|
9971000
| pid | integer | the application's process id |

0 commit comments

Comments
 (0)