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
+95Lines changed: 95 additions & 0 deletions
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,6 +829,7 @@ 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
835
@@ -1054,6 +1089,41 @@ No scopes required
1054
1089
1055
1090
---
1056
1091
1092
+
### RELATIONSHIP_UPDATE
1093
+
1094
+
Received when a relationship of the current user is updated.
1095
+
1096
+
#### Required Scopes
1097
+
1098
+
- relationships.read
1099
+
1100
+
:::info
1101
+
Requires Discord approval
1102
+
:::
1103
+
1104
+
#### Sample Event Payload
1105
+
```javascript
1106
+
{
1107
+
"type":1,
1108
+
"user": {
1109
+
"id":"7173771622812225536",
1110
+
"username":"beef_supreme",
1111
+
"discriminator":"0",
1112
+
"global_name":"Dis Cord",
1113
+
"avatar":"abcdefg",
1114
+
"avatar_decoration_data": {
1115
+
"asset":"abcdefg",
1116
+
"sku_id":"123456789"
1117
+
},
1118
+
"bot":false,
1119
+
"flags":1,
1120
+
"premium_type":2
1121
+
}
1122
+
}
1123
+
```
1124
+
1125
+
---
1126
+
1057
1127
### ENTITLEMENT_CREATE
1058
1128
1059
1129
:::preview
@@ -1302,6 +1372,12 @@ Coming soon! Not available during Developer Preview
0 commit comments