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
+95-1Lines changed: 95 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -167,6 +167,7 @@ Developers can use these commands to interact with the Discord client. The follo
167
167
|[getEntitlements](/docs/developer-tools/embedded-app-sdk#getentitlements)| Returns a list of entitlements for the current user |
168
168
|[getInstanceConnectedParticipants](/docs/developer-tools/embedded-app-sdk#getinstanceconnectedparticipants)| Returns all participants connected to the instance |
169
169
|[getPlatformBehaviors](/docs/developer-tools/embedded-app-sdk#getplatformbehaviors)| Returns information about supported platform behaviors |
170
+
|[getRelationships](/docs/developer-tools/embedded-app-sdk#getrelationships)| Returns the current user's relationships |
170
171
|[getSkus](/docs/developer-tools/embedded-app-sdk#getskus)| Returns a list of your app's SKUs |
171
172
|[initiateImageUpload](/docs/developer-tools/embedded-app-sdk#initiateimageupload)| Presents the file upload flow in the Discord client |
172
173
|[openExternalLink](/docs/developer-tools/embedded-app-sdk#openexternallink)| Allows for opening an external link from within the Discord client |
Returns a list of SKU objects. SKUs without prices are automatically filtered out.
@@ -795,9 +829,9 @@ Developers may use the following events alongside the `subscribe()` SDK method t
795
829
|[CURRENT_GUILD_MEMBER_UPDATE](/docs/developer-tools/embedded-app-sdk#currentguildmemberupdate)| Received when the current guild member object changes |
796
830
|[THERMAL_STATE_UPDATE](/docs/developer-tools/embedded-app-sdk#thermalstateupdate)| Received when Android or iOS thermal states are surfaced to the Discord app |
797
831
|[ACTIVITY_INSTANCE_PARTICIPANTS_UPDATE](/docs/developer-tools/embedded-app-sdk#activityinstanceparticipantsupdate)| Received when the number of instance participants changes |
832
+
|[RELATIONSHIP_UPDATE](/docs/developer-tools/embedded-app-sdk#relationshipupdate)| Received when a relationship of the current user is updated |
798
833
|[ENTITLEMENT_CREATE](/docs/developer-tools/embedded-app-sdk#entitlementcreate)| Received when an entitlement is created for a SKU |
799
834
800
-
801
835
### READY
802
836
803
837
Non-subscription event sent immediately after connecting, contains server information.
@@ -1054,6 +1088,41 @@ No scopes required
1054
1088
1055
1089
---
1056
1090
1091
+
### RELATIONSHIP_UPDATE
1092
+
1093
+
Received when a relationship of the current user is updated.
1094
+
1095
+
#### Required Scopes
1096
+
1097
+
- relationships.read
1098
+
1099
+
:::info
1100
+
Requires Discord approval
1101
+
:::
1102
+
1103
+
#### Sample Event Payload
1104
+
```javascript
1105
+
{
1106
+
"type":1,
1107
+
"user": {
1108
+
"id":"7173771622812225536",
1109
+
"username":"beef_supreme",
1110
+
"discriminator":"0",
1111
+
"global_name":"Dis Cord",
1112
+
"avatar":"abcdefg",
1113
+
"avatar_decoration_data": {
1114
+
"asset":"abcdefg",
1115
+
"sku_id":"123456789"
1116
+
},
1117
+
"bot":false,
1118
+
"flags":1,
1119
+
"premium_type":2
1120
+
}
1121
+
}
1122
+
```
1123
+
1124
+
---
1125
+
1057
1126
### ENTITLEMENT_CREATE
1058
1127
1059
1128
:::preview
@@ -1302,6 +1371,12 @@ Coming soon! Not available during Developer Preview
0 commit comments