From a603ea170f039626db1c2e91ebfe4301c38f9295 Mon Sep 17 00:00:00 2001 From: Vinyarion <38413862+VinyarionHyarmendacil@users.noreply.github.com> Date: Fri, 24 May 2024 22:53:02 -0500 Subject: [PATCH] Add user badge events to Pipeline tutorial (#145) --- content/tutorials/websocket.markdown | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/content/tutorials/websocket.markdown b/content/tutorials/websocket.markdown index 43b7154..aef5a05 100644 --- a/content/tutorials/websocket.markdown +++ b/content/tutorials/websocket.markdown @@ -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.