You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/developer_tools/Embedded_App_SDK.mdx
+88-1Lines changed: 88 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -175,6 +175,7 @@ Developers can use these commands to interact with the Discord client. The follo
175
175
|[setActivity](#DOCS_DEVELOPER_TOOLS_EMBEDDED_APP_SDK/setactivity)| Modifies how your activity's rich presence is displayed in the Discord client |
176
176
|[setConfig](#DOCS_DEVELOPER_TOOLS_EMBEDDED_APP_SDK/setconfig)| Set whether or not the PIP (picture-in-picture) is interactive |
177
177
|[setOrientationLockState](#DOCS_DEVELOPER_TOOLS_EMBEDDED_APP_SDK/setorientationlockstate)| Set options for orientation and picture-in-picture (PIP) modes |
178
+
|[shareLink](#DOCS_DEVELOPER_TOOLS_EMBEDDED_APP_SDK/sharelink)| Presents a modal for the user to share a link to your activity with custom query params |
178
179
|[startPurchase](#DOCS_DEVELOPER_TOOLS_EMBEDDED_APP_SDK/startpurchase)| Launches the purchase flow for a specific SKU, per the sku_id |
179
180
|[userSettingsGetLocale](#DOCS_DEVELOPER_TOOLS_EMBEDDED_APP_SDK/usersettingsgetlocale)| Returns the current user's locale |
message:'This message is shared alongside the link!',
720
+
referrer_id:'some_referrer_id',
721
+
custom_id:'some_custom_id',
722
+
});
723
+
success ?console.log('User shared link!') :console.log('User did not share link!');
724
+
```
725
+
726
+
---
727
+
694
728
### startPurchase()
695
729
696
730
Launches the purchase flow for a specific SKU ID.
@@ -759,6 +793,7 @@ Developers may use the following events alongside the `subscribe()` SDK method t
759
793
|[ACTIVITY_LAYOUT_MODE_UPDATE](#DOCS_DEVELOPER_TOOLS_EMBEDDED_APP_SDK/activitylayoutmodeupdate)| Received when a user changes the layout mode in the Discord client |
760
794
|[ORIENTATION_UPDATE](#DOCS_DEVELOPER_TOOLS_EMBEDDED_APP_SDK/orientationupdate)| Received when screen orientation changes |
761
795
|[CURRENT_USER_UPDATE](#DOCS_DEVELOPER_TOOLS_EMBEDDED_APP_SDK/currentuserupdate)| Received when the current user object changes |
796
+
|[CURRENT_GUILD_MEMBER_UPDATE](#DOCS_DEVELOPER_TOOLS_EMBEDDED_APP_SDK/currentguildmemberupdate)| Received when the current guild member object changes |
762
797
|[THERMAL_STATE_UPDATE](#DOCS_DEVELOPER_TOOLS_EMBEDDED_APP_SDK/thermalstateupdate)| Received when Android or iOS thermal states are surfaced to the Discord app |
763
798
|[ACTIVITY_INSTANCE_PARTICIPANTS_UPDATE](#DOCS_DEVELOPER_TOOLS_EMBEDDED_APP_SDK/activityinstanceparticipantsupdate)| Received when the number of instance participants changes |
764
799
|[ENTITLEMENT_CREATE](#DOCS_DEVELOPER_TOOLS_EMBEDDED_APP_SDK/entitlementcreate)| Received when an entitlement is created for a SKU |
@@ -943,6 +978,33 @@ Received when the current user object changes.
943
978
944
979
---
945
980
981
+
### CURRENT_GUILD_MEMBER_UPDATE
982
+
983
+
Received when the current guild member object changes.
984
+
985
+
#### Required Scopes
986
+
987
+
- identify
988
+
- guilds.members.read
989
+
990
+
#### Sample Event Payload
991
+
992
+
```javascript
993
+
{
994
+
"user_id":"7173771622812225536",
995
+
"nick":"beef_supreme",
996
+
"guild_id":"613425648685547541"
997
+
"avatar":"abcdefg",
998
+
"avatar_decoration_data": {
999
+
"asset":"abcdefg",
1000
+
"sku_id":"123456789"
1001
+
},
1002
+
"color_string":"#ffff00"
1003
+
}
1004
+
```
1005
+
1006
+
---
1007
+
946
1008
### THERMAL_STATE_UPDATE
947
1009
948
1010
Received when Android or iOS thermal states are surfaced to the Discord mobile app.
Copy file name to clipboardExpand all lines: docs/interactions/Overview.mdx
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -45,7 +45,7 @@ A list of all message components and details on sending and receiving component
45
45
46
46
### Modals
47
47
48
-
**[Modals](#DOCS_INTERACTIONS_RECEIVING_AND_RESPONDING/interaction-response-object-modal)** are single-user pop-up interfaces that allow apps to collect form-like data. Modals can only be opened in response to a user invoking on of your app's commands or message components.
48
+
**[Modals](#DOCS_INTERACTIONS_RECEIVING_AND_RESPONDING/interaction-response-object-modal)** are single-user pop-up interfaces that allow apps to collect form-like data. Modals can only be opened in response to a user invoking one of your app's commands or message components.
49
49
50
50

51
51
@@ -169,4 +169,4 @@ On the **General Overview** page, look for the **Interactive Endpoint URL** fiel
169
169
170
170
## Handling Interactions
171
171
172
-
Once your app is prepared for interactions, you can explore the [Receiving and Responding](#DOCS_INTERACTIONS_RECEIVING_AND_RESPONDING) documentation which goes into the technical details of handling interactions requests in your app.
172
+
Once your app is prepared for interactions, you can explore the [Receiving and Responding](#DOCS_INTERACTIONS_RECEIVING_AND_RESPONDING) documentation which goes into the technical details of handling interactions requests in your app.
Copy file name to clipboardExpand all lines: docs/quick_start/Overview_of_Apps.mdx
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -38,7 +38,7 @@ With the right API endpoints and proper [permissions](#DOCS_TOPICS_PERMISSIONS),
38
38
39
39
### Update user metadata and presence
40
40
41
-
Apps can update a Discord's user metadata with data from a party game or app in a few ways.Apps can also update a user's profile with actionable data from a game or app by integrating **[Rich Presence](#DOCS_RICH_PRESENCE_OVERVIEW)**. Apps can also use **[role connection metadata](#DOCS_RESOURCES_APPLICATION_ROLE_CONNECTION_METADATA)** to associate third-party metadata (like stats or account type) with Discord users, which server admins can use to set up roles based on. You can explore more in the [configuring metadata for linked roles](#DOCS_TUTORIALS_CONFIGURING_APP_METADATA_FOR_LINKED_ROLES) tutorial.
41
+
Apps can update a Discord's user metadata with data from a party game or app in a few ways.Apps can also update a user's profile with actionable data from a game or app by integrating **[Rich Presence](#DOCS_RICH_PRESENCE_OVERVIEW)**. Apps can also use **[role connection metadata](#DOCS_RESOURCES_APPLICATION_ROLE_CONNECTION_METADATA)** to associate third-party metadata (like stats or account type) with Discord users, which server admins can use to set up roles based on. You can explore more in the [configuring metadata for linked roles](#DOCS_TUTORIALS_CONFIGURING_APP_METADATA_FOR_LINKED_ROLES) tutorial.
Copy file name to clipboardExpand all lines: docs/resources/Audit_Log.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -71,7 +71,7 @@ The table below lists audit log events and values (the `action_type` field) that
71
71
72
72
The **Object Changed** column notes which object's values may be included in the entry. Though there are exceptions, possible keys in the `changes` array typically correspond to the object's fields. The descriptions and types for those fields can be found in the linked documentation for the object.
73
73
74
-
If no object is noted, there won't be a `changes` array in the entry, though other fields like the `target_id` still exist and many have fields in the [`options`array](#DOCS_RESOURCES_AUDIT_LOG/audit-log-entry-object-optional-audit-entry-info).
74
+
If no object is noted, there won't be a `changes` array in the entry, though other fields like the `target_id` still exist and many have fields in the [`options`object](#DOCS_RESOURCES_AUDIT_LOG/audit-log-entry-object-optional-audit-entry-info).
75
75
76
76
> info
77
77
> You should assume that your app may run into any field for the changed object, though none are guaranteed to be present. In most cases only a subset of the object's fields will be in the `changes` array.
0 commit comments