feat(eventsub): add basic parse tests and benchmark (#5952)
This commit is contained in:
@@ -0,0 +1,66 @@
|
||||
{
|
||||
"metadata": {
|
||||
"message_id": "2ea469a5-4bc8-4f95-ae08-c10b679cf038",
|
||||
"message_type": "notification",
|
||||
"message_timestamp": "2024-05-14T12:31:47.995298776Z",
|
||||
"subscription_type": "channel.moderate",
|
||||
"subscription_version": "2"
|
||||
},
|
||||
"payload": {
|
||||
"subscription": {
|
||||
"id": "5a893cd8-c10e-4198-a620-e9f35fd6ccd6",
|
||||
"status": "enabled",
|
||||
"type": "channel.moderate",
|
||||
"version": "2",
|
||||
"condition": {
|
||||
"broadcaster_user_id": "129546453",
|
||||
"moderator_user_id": "129546453"
|
||||
},
|
||||
"transport": {
|
||||
"method": "websocket",
|
||||
"session_id": "AgoQMmDnfVEhRI6iLiBniEWHkxIGY2VsbC1j"
|
||||
},
|
||||
"created_at": "2024-11-27T20:01:50.171283653Z",
|
||||
"cost": 0
|
||||
},
|
||||
"event": {
|
||||
"broadcaster_user_id": "129546453",
|
||||
"broadcaster_user_login": "nerixyz",
|
||||
"broadcaster_user_name": "nerixyz",
|
||||
"source_broadcaster_user_id": null,
|
||||
"source_broadcaster_user_login": null,
|
||||
"source_broadcaster_user_name": null,
|
||||
"moderator_user_id": "129546453",
|
||||
"moderator_user_login": "nerixyz",
|
||||
"moderator_user_name": "nerixyz",
|
||||
"action": "timeout",
|
||||
"followers": null,
|
||||
"slow": null,
|
||||
"vip": null,
|
||||
"unvip": null,
|
||||
"mod": null,
|
||||
"unmod": null,
|
||||
"ban": null,
|
||||
"unban": null,
|
||||
"timeout": {
|
||||
"user_id": "141981764",
|
||||
"user_login": "twitchdev",
|
||||
"user_name": "TwitchDev",
|
||||
"reason": "test Kappa",
|
||||
"expires_at": "2024-11-27T20:01:55.358149527Z"
|
||||
},
|
||||
"untimeout": null,
|
||||
"raid": null,
|
||||
"unraid": null,
|
||||
"delete": null,
|
||||
"automod_terms": null,
|
||||
"unban_request": null,
|
||||
"warn": null,
|
||||
"shared_chat_ban": null,
|
||||
"shared_chat_unban": null,
|
||||
"shared_chat_timeout": null,
|
||||
"shared_chat_untimeout": null,
|
||||
"shared_chat_delete": null
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user