Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New activity types for SET_ACTIVITY #7033

Merged
merged 5 commits into from
Jul 26, 2024
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
9 changes: 9 additions & 0 deletions docs/Change_Log.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
# Change Log

## Supported Activity Types for SET_ACTIVITY

#### July 25, 2024

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`).

> warn
> 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).

## Application Emoji

#### July 18, 2024
Expand Down
2 changes: 1 addition & 1 deletion docs/game_sdk/Activities.md
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ For more detailed information and documentation around the Rich Presence feature

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

`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.
`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.

###### ActivityJoinRequestReply Enum

Expand Down
2 changes: 1 addition & 1 deletion docs/topics/Gateway_Events.md
Original file line number Diff line number Diff line change
Expand Up @@ -1049,7 +1049,7 @@ Active sessions are indicated with an "online", "idle", or "dnd" string per plat

| ID | Name | Format | Example |
|----|-----------|---------------------|--------------------------------------|
| 0 | Game | Playing {name} | "Playing Rocket League" |
| 0 | Playing | Playing {name} | "Playing Rocket League" |
| 1 | Streaming | Streaming {details} | "Streaming Rocket League" |
| 2 | Listening | Listening to {name} | "Listening to Spotify" |
| 3 | Watching | Watching {name} | "Watching YouTube Together" |
Expand Down
3 changes: 3 additions & 0 deletions docs/topics/RPC.md
Original file line number Diff line number Diff line change
Expand Up @@ -992,6 +992,9 @@ Used to update a user's Rich Presence.

###### Set Activity Argument Structure

> info
> When using `SET_ACTIVITY`, the `activity` object is limited to a `type` of Playing (`0`), Listening (`2`), Watching (`3`), or Competing (`5`).

| Field | Type | Description |
|----------|----------------------------------------------------------------|-----------------------------------------|
| pid | integer | the application's process id |
Expand Down