Skip to content

Commit 036aa00

Browse files
committed
selling points
1 parent 90d3014 commit 036aa00

File tree

1 file changed

+10
-5
lines changed

1 file changed

+10
-5
lines changed

docs/activities/development-guides.mdx

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -990,7 +990,7 @@ async function handleReferral() {
990990
991991
### Creating and Managing Custom Incentivized Links
992992
993-
This guide covers creating a customizable [Incentivized Link](#DOCS_ACTIVITIES_DEVELOPMENT_GUIDES/prompting-users-to-share-incentivized-links) through the dev portal, and then retrieving the link to be able to share it off-platform.
993+
This guide covers creating a customizable [Incentivized Link](#DOCS_ACTIVITIES_DEVELOPMENT_GUIDES/prompting-users-to-share-incentivized-links) through the dev portal, and then retrieving the link to be able to share it off-platform. The main purpose of these links is the ability to customize how they're presented to users via the embed.
994994
995995
#### Creating a Link
996996
@@ -1037,6 +1037,11 @@ Users will see an embed with your information displayed. Clicking "Play" opens t
10371037

10381038
This guide covers creating a customizable [Incentivized Link](#DOCS_ACTIVITIES_DEVELOPMENT_GUIDES/prompting-users-to-share-incentivized-links) within your activity, and using the `shareLink` API to share the link.
10391039

1040+
* Allows you to customize the way the link is presented to users via the embed
1041+
* Can be generated on-demand within your activity
1042+
* Ephemeral, 30 day TTL
1043+
* Does not show up in the developer portal
1044+
10401045
#### Generating a Link
10411046

10421047
```
@@ -1050,10 +1055,10 @@ const linkIdResponse = await fetch(`${env.discordAPI}/applications/${env.applica
10501055
Authorization: `Bearer ${accessToken}`,
10511056
},
10521057
body: {
1053-
custom_id: 'user_123/game_456'
1054-
description: 'I just beat level 10 with a perfect score',
1055-
title: 'Check out my high score!',
1056-
image,
1058+
custom_id: 'user_123/game_456'
1059+
description: 'I just beat level 10 with a perfect score',
1060+
title: 'Check out my high score!',
1061+
image,
10571062
}
10581063
});
10591064
const {link_id} = await linkIdResponse.json();

0 commit comments

Comments
 (0)