Skip to content

Commit 12a2c02

Browse files
committed
slight clarification on auto referredId
1 parent 43b85c0 commit 12a2c02

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/activities/Development_Guides.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -902,7 +902,7 @@ const { success } = await DiscordRPC.commands.shareLink({
902902
});
903903
success ? console.log('User shared link!') : console.log('User did not share link!');
904904
```
905-
Calling `shareLink` will prompt the user with a modal to share the link. The `success` returned indicates if the link was shared or copied. Note that we did not add a `referrer_id` in this example, as the user ID will automatically be appended as a referrer if left empty.
905+
Calling `shareLink` will prompt the user with a modal to share the link. The `success` returned indicates if the link was shared or copied. Note that we did not add a `referrer_id` in this example, as the user ID of the user sharing the link will automatically be appended as a referrer if left empty.
906906
907907
So now that the initial user has shared a link, what happens when their friend receives the message and clicks the link?
908908
Clicking the link (or Play from the Embed) will launch the activity and pass the `customId` and `referredId` to the SDK. From there you can resolve the IDs and grant the rewards as promised.

0 commit comments

Comments
 (0)