feat(eventsub): add basic parse tests and benchmark (#5952)
This commit is contained in:
@@ -0,0 +1,36 @@
|
||||
{
|
||||
"metadata": {
|
||||
"message_id": "e6095757-c068-4a97-b6b4-46cb45c8d507",
|
||||
"message_type": "notification",
|
||||
"message_timestamp": "2023-05-14T12:31:47.995298776Z",
|
||||
"subscription_type": "channel.ban",
|
||||
"subscription_version": "1"
|
||||
},
|
||||
"payload": {
|
||||
"subscription": {
|
||||
"id": "4aa632e0-fca3-590b-e981-bbd12abdb3fe",
|
||||
"status": "enabled",
|
||||
"type": "channel.ban",
|
||||
"version": "1",
|
||||
"condition": { "broadcaster_user_id": "74378979" },
|
||||
"transport": { "method": "websocket", "session_id": "38de428e_b11f07be" },
|
||||
"created_at": "2023-05-20T12:30:55.518375571Z",
|
||||
"cost": 0
|
||||
},
|
||||
"event": {
|
||||
"banned_at": "2023-05-20T12:30:55.518375571Z",
|
||||
"broadcaster_user_id": "74378979",
|
||||
"broadcaster_user_login": "testBroadcaster",
|
||||
"broadcaster_user_name": "testBroadcaster",
|
||||
"ends_at": "2023-05-20T12:40:55.518375571Z",
|
||||
"is_permanent": false,
|
||||
"moderator_user_id": "29024944",
|
||||
"moderator_user_login": "CLIModerator",
|
||||
"moderator_user_name": "CLIModerator",
|
||||
"reason": "This is a test event",
|
||||
"user_id": "40389552",
|
||||
"user_login": "testFromUser",
|
||||
"user_name": "testFromUser"
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user