Skip to content

Commit a603ea1

Browse files
Add user badge events to Pipeline tutorial (#145)
1 parent 65790f9 commit a603ea1

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

content/tutorials/websocket.markdown

+26
Original file line numberDiff line numberDiff line change
@@ -378,6 +378,32 @@ A "`user-location`" event is sent when the user has changed instances.
378378
```
379379

380380

381+
#### user-badge-assigned
382+
A "`user-badge-assigned`" event is sent when the user obtains a badge, such as for subscribing to VRChat+.
383+
384+
```json
385+
{
386+
"type": "user-badge-assigned",
387+
"content": {
388+
"badge": ":badge"
389+
}
390+
}
391+
```
392+
393+
394+
#### user-badge-unassigned
395+
A "`user-badge-unassigned`" event is sent when the user loses a badge, such a VRChat+ subscription expiring.
396+
397+
```json
398+
{
399+
"type": "user-badge-unassigned",
400+
"content": {
401+
"badgeId": ":badgeId"
402+
}
403+
}
404+
```
405+
406+
381407
#### content-refresh
382408
A "`content-refresh`" event is sent when the user adds or removes profile images etc.
383409

0 commit comments

Comments
 (0)