Skip to content

Commit 6525c03

Browse files
Furnyradvaith1
andauthored
Document CURRENT_GUILD_MEMBER_UPDATE (#7130)
* Document CURRENT_GUILD_MEMBER_UPDATE * Fix CURRENT_GUILD_MEMBER_UPDATE scopes Co-authored-by: advaith <[email protected]> * Fix color string * Document GuildMemberRPC --------- Co-authored-by: advaith <[email protected]>
1 parent bf550ba commit 6525c03

File tree

1 file changed

+39
-0
lines changed

1 file changed

+39
-0
lines changed

docs/developer_tools/Embedded_App_SDK.mdx

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -793,6 +793,7 @@ Developers may use the following events alongside the `subscribe()` SDK method t
793793
| [ACTIVITY_LAYOUT_MODE_UPDATE](#DOCS_DEVELOPER_TOOLS_EMBEDDED_APP_SDK/activitylayoutmodeupdate) | Received when a user changes the layout mode in the Discord client |
794794
| [ORIENTATION_UPDATE](#DOCS_DEVELOPER_TOOLS_EMBEDDED_APP_SDK/orientationupdate) | Received when screen orientation changes |
795795
| [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 |
796797
| [THERMAL_STATE_UPDATE](#DOCS_DEVELOPER_TOOLS_EMBEDDED_APP_SDK/thermalstateupdate) | Received when Android or iOS thermal states are surfaced to the Discord app |
797798
| [ACTIVITY_INSTANCE_PARTICIPANTS_UPDATE](#DOCS_DEVELOPER_TOOLS_EMBEDDED_APP_SDK/activityinstanceparticipantsupdate) | Received when the number of instance participants changes |
798799
| [ENTITLEMENT_CREATE](#DOCS_DEVELOPER_TOOLS_EMBEDDED_APP_SDK/entitlementcreate) | Received when an entitlement is created for a SKU |
@@ -977,6 +978,33 @@ Received when the current user object changes.
977978

978979
---
979980

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+
9801008
### THERMAL_STATE_UPDATE
9811009

9821010
Received when Android or iOS thermal states are surfaced to the Discord mobile app.
@@ -1292,6 +1320,17 @@ No scopes required
12921320
| deaf | boolean |
12931321
| mute | boolean |
12941322

1323+
#### GuildMemberRPC
1324+
1325+
| Property | Type |
1326+
|-------------------------|---------------------------------------------------------------------------------------------|
1327+
| user_id | string |
1328+
| nick? | string \| null |
1329+
| guild_id | string |
1330+
| avatar? | string \| null |
1331+
| avatar_decoration_data? | [AvatarDecorationData](#DOCS_DEVELOPER_TOOLS_EMBEDDED_APP_SDK/avatardecorationdata) \| null |
1332+
| color_string? | string \| null |
1333+
12951334
#### Image
12961335

12971336
| Property | Type |

0 commit comments

Comments
 (0)