Skip to content
Merged
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
6 changes: 4 additions & 2 deletions docs/activities/development-guides/growth-and-referrals.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -166,9 +166,10 @@ const linkIdResponse = await fetch(`${env.discordAPI}/applications/${env.applica
method: 'POST',
headers: {
Authorization: `Bearer ${accessToken}`,
'Content-Type': 'application/json',
},
body: {
custom_id: 'user_123/game_456'
custom_id: 'user_123/game_456',
description: 'I just beat level 10 with a perfect score',
title: 'Check out my high score!',
image,
Expand All @@ -178,7 +179,8 @@ const {link_id} = await linkIdResponse.json();

// Open the Share modal with the generated link
const {success} = await discordSdk.commands.shareLink({
linkId: link_id
message: 'Check out my high score!',
link_id,
});
success ? console.log('User shared link!') : console.log('User did not share link!');
```