Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Colin Loretz <[email protected]>
  • Loading branch information
afgiel and colinloretz authored Jan 23, 2025
1 parent 5855f1b commit b564bc7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion docs/activities/Development_Guides.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -898,7 +898,7 @@ Incentivized sharing can help grow your Activity through network effects. This g
When implementing sharing, you'll need to:
1. Generate a unique ID for tracking the promotion
2. Call the `shareLink` command
2. Call the [`shareLink`](#DOCS_DEVELOPER_TOOLS_EMBEDDED_APP_SDK/sharelink) command
3. Track the share attempt
```javascript
Expand Down Expand Up @@ -966,6 +966,8 @@ async function handleReferral() {
- Handle edge cases like expired promotions gracefully
- Consider implementing cool-down periods between shares
---
### Preventing unwanted activity sessions
Activities are surfaced through iframes in the Discord app. The activity website itself is publicly reachable at `<application_id>.discordsays.com`. Activities will expect to be able to communicate with Discord's web or mobile client via the Discord SDK's RPC protocol. If a user loads the activity's website in a normal browser, the Discord RPC server will not be present, and the activity will likely fail in some way.
Expand Down

0 comments on commit b564bc7

Please sign in to comment.