Skip to content

Commit

Permalink
Add user badge events to Pipeline tutorial (#145)
Browse files Browse the repository at this point in the history
  • Loading branch information
VinyarionHyarmendacil authored May 25, 2024
1 parent 65790f9 commit a603ea1
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions content/tutorials/websocket.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -378,6 +378,32 @@ A "`user-location`" event is sent when the user has changed instances.
```


#### user-badge-assigned
A "`user-badge-assigned`" event is sent when the user obtains a badge, such as for subscribing to VRChat+.

```json
{
"type": "user-badge-assigned",
"content": {
"badge": ":badge"
}
}
```


#### user-badge-unassigned
A "`user-badge-unassigned`" event is sent when the user loses a badge, such a VRChat+ subscription expiring.

```json
{
"type": "user-badge-unassigned",
"content": {
"badgeId": ":badgeId"
}
}
```


#### content-refresh
A "`content-refresh`" event is sent when the user adds or removes profile images etc.

Expand Down

0 comments on commit a603ea1

Please sign in to comment.