From a450203d5f0108cf21cd819714bc1e359e115922 Mon Sep 17 00:00:00 2001 From: imjac0b <186802484+imjac0b@users.noreply.github.com> Date: Mon, 28 Apr 2025 23:56:11 +0800 Subject: [PATCH] Fix syntax errors in Generating a Link for Growth and Referrals --- docs/activities/development-guides/growth-and-referrals.mdx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/docs/activities/development-guides/growth-and-referrals.mdx b/docs/activities/development-guides/growth-and-referrals.mdx index 9d4218d7ad..a76c61dc9a 100644 --- a/docs/activities/development-guides/growth-and-referrals.mdx +++ b/docs/activities/development-guides/growth-and-referrals.mdx @@ -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, @@ -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!'); ```