Skip to content

Commit 5f6ce41

Browse files
committed
cleanup
1 parent 780be55 commit 5f6ce41

File tree

3 files changed

+22
-22
lines changed

3 files changed

+22
-22
lines changed

docs/discord-social-sdk/development-guides/managing-game-invites.mdx

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -158,18 +158,6 @@ Now your game supports rich presence with game invites! The Discord client will
158158

159159
---
160160

161-
## Setting a Cover Image for the Invite (Optional)
162-
163-
You can set a cover image for an invite via rich presence activity. This image displays as the banner on the invite and helps draw attention to it. Setting a cover image via rich presence allows you to dynamically customize invites per rich presence activity; for example, showing different images based on game mode, map, etc. rather than using the same static image for all invites. If not set, the banner falls back to the "Rich Presence Invite Image" configured in the Developer Portal under the "Rich Presence" tab. Setting an invite cover image is entirely optional.
164-
165-
```cpp
166-
discordpp::ActivityAssets assets;
167-
assets.SetInviteCoverImage("invite-cover-image");
168-
activity.SetAssets(assets);
169-
```
170-
171-
---
172-
173161
## Registering a Launch Command
174162

175163
Before we send a game invite, let's make sure that the Discord client knows about your game and how to launch it.
@@ -468,6 +456,18 @@ yourgame://_discord/join?secret=the_join_secret_you_set
468456

469457
---
470458

459+
## Setting a Cover Image for the Invite (Optional)
460+
461+
You can set a cover image for an invite via rich presence activity. This image displays as the banner on the invite and helps draw attention to it. Setting a cover image via rich presence allows you to dynamically customize invites per rich presence activity; for example, showing different images based on game mode, map, etc. rather than using the same static image for all invites. If not set, the banner falls back to the "Rich Presence Invite Image" configured in the Developer Portal under the "Rich Presence" tab. Setting an invite cover image is entirely optional.
462+
463+
```cpp
464+
discordpp::ActivityAssets assets;
465+
assets.SetInviteCoverImage("invite-cover-image"); // This example uses an asset key, but you can use an external URL asset for more dynamic cover images.
466+
activity.SetAssets(assets);
467+
```
468+
469+
---
470+
471471
## Next Steps
472472

473473
<Container>

docs/discord-social-sdk/development-guides/setting-rich-presence.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ activity.SetTimestamps(timestamps);
146146

147147
## Setting Assets
148148

149-
Once you've uploaded assets to your app, you can reference them using their **asset key** in your code to set custom artwork in Rich Presence. Here's an example of an asset with the key of "map-mainframe" and "tank-avatar":
149+
Once you've uploaded assets to your app, you can reference them using their **asset key** in your code to set custom artwork in Rich Presence. Here's an example of an asset with the key of "map-mainframe", "tank-avatar", and "invite-cover-image":
150150

151151
```cpp
152152
// Setting Activity Assets

docs/events/gateway-events.mdx

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1219,15 +1219,15 @@ For Listening and Watching activities, you can include both start and end timest
12191219

12201220
###### Activity Assets
12211221

1222-
| Field | Type | Description |
1223-
|---------------------|--------|------------------------------------------------------------------------------------------------------------------------------------------|
1224-
| large_image? | string | See [Activity Asset Image](/docs/events/gateway-events#activity-object-activity-asset-image) |
1225-
| large_text? | string | Text displayed when hovering over the large image of the activity |
1226-
| large_url? | string | URL that is opened when clicking on the large image |
1227-
| small_image? | string | See [Activity Asset Image](/docs/events/gateway-events#activity-object-activity-asset-image) |
1228-
| small_text? | string | Text displayed when hovering over the small image of the activity |
1229-
| small_url? | string | URL that is opened when clicking on the small image |
1230-
| invite_cover_image? | string | See [Activity Asset Image](/docs/events/gateway-events#activity-object-activity-asset-image). Displayed as a banner on a [Game Invite](/docs/discord-social-sdk/development-guides/managing-game-invites). Currently only supported via Social SDK. |
1222+
| Field | Type | Description |
1223+
|---------------------|--------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
1224+
| large_image? | string | See [Activity Asset Image](/docs/events/gateway-events#activity-object-activity-asset-image) |
1225+
| large_text? | string | Text displayed when hovering over the large image of the activity |
1226+
| large_url? | string | URL that is opened when clicking on the large image |
1227+
| small_image? | string | See [Activity Asset Image](/docs/events/gateway-events#activity-object-activity-asset-image) |
1228+
| small_text? | string | Text displayed when hovering over the small image of the activity |
1229+
| small_url? | string | URL that is opened when clicking on the small image |
1230+
| invite_cover_image? | string | See [Activity Asset Image](/docs/events/gateway-events#activity-object-activity-asset-image). Displayed as a banner on a [Game Invite](/docs/discord-social-sdk/development-guides/managing-game-invites). |
12311231

12321232
###### Activity Asset Image
12331233

0 commit comments

Comments
 (0)