Skip to content

Commit

Permalink
Updates to RPC and Gateway for SET_ACTIVITY and related cmds/evts
Browse files Browse the repository at this point in the history
  • Loading branch information
msciotti committed Mar 26, 2018
1 parent 1519e3e commit 57f416a
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 3 deletions.
15 changes: 15 additions & 0 deletions docs/topics/Gateway.md
Original file line number Diff line number Diff line change
Expand Up @@ -788,6 +788,8 @@ A user's presence is their current state on a guild. This event is sent when a u
| state? | ?string | the user's current party status |
| party? | [party](#DOCS_TOPICS_GATEWAY/activity-object-activity-party) object | information for the current party of the player |
| assets? | [assets](#DOCS_TOPICS_GATEWAY/activity-object-activity-assets) object | images for the presence and their hover texts |
| secrets? | [secrets](#DOCS_TOPICS_GATEWAY/activity-object-activity-secrets) object | secrets for Rich Presence joining and spectating |
| instance? | boolean | whether or not the activity is an instanced game session |

>info
>Bots are only able to send `name`, `type`, and optionally `url`.
Expand Down Expand Up @@ -826,6 +828,14 @@ A user's presence is their current state on a guild. This event is sent when a u
| small_image? | string | the id for a small asset of the activity, usually a snowflake |
| small_text? | string | text displayed when hovering over the small image of the activity |

###### Activity Secrets

| Field | Type | Description |
| ----- | ---- | ----------- |
| join? | string | the secret for joining a party |
| spectate? | string | the secret for spectating a game |
| match? | string | the secret for a specific instanced match |

###### Example Activity

```json
Expand Down Expand Up @@ -857,6 +867,11 @@ A user's presence is their current state on a guild. This event is sent when a u
"large_text": "DFH Stadium",
"small_image": "351371005538729111",
"small_text": "Silver III"
},
"secrets": {
"join": "025ed05c71f639de8bfaa0d679d7c94b2fdce12f",
"spectate": "e7eb30d2ee025ed05c71ea495f770b76454ee4e0",
"match": "4b2fdce12f639de8bfa7e3591b71a0d679d7c93f"
}
}
```
Expand Down
6 changes: 3 additions & 3 deletions docs/topics/RPC.md
Original file line number Diff line number Diff line change
Expand Up @@ -1060,7 +1060,7 @@ Used by hardware manufacturers to send information about the current state of th

Used to update a user's Rich Presence.

###### SET_ACTIVITY Argument Structure
###### Set Activity Argument Structure

| Field | Type | Description |
| -------- | ------------------------------------------------------- | --------------------------------------- |
Expand Down Expand Up @@ -1107,7 +1107,7 @@ Used to update a user's Rich Presence.

Used to accept an Ask to Join request.

###### SEND_ACTIVITY_JOIN_INVITE Argument Structure
###### Send Activity Join Invite Argument Structure

| Field | Type | Description |
| ------- | --------- | ----------------------------- |
Expand All @@ -1130,7 +1130,7 @@ Used to accept an Ask to Join request.

Used to reject an Ask to Join request.

###### CLOSE_ACTIVITY_REQUEST Argument Structure
###### Close Activity Request Argument Structure

| Field | Type | Description |
| ------- | --------- | ----------------------------- |
Expand Down

0 comments on commit 57f416a

Please sign in to comment.