Skip to content

Commit aa608de

Browse files
authored
Merge pull request #445 from xdevplatform/docs/broadcast-chat-is-moderator
Add is_moderator to broadcast.chat payload
2 parents cce9f7f + 4047d89 commit aa608de

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎x-api/activity/event-payloads.mdx‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2340,7 +2340,7 @@ Fired when a user ends a live broadcast. Public event — can be subscribed to w
23402340

23412341
### `broadcast.chat`
23422342

2343-
Fired when the filtered user receives a chat message in a broadcast that they own. Private event — requires user-context authentication with the `broadcast.read` scope. The `payload` includes the `broadcast_id`, the chat `message_id` and `message` text, an `is_subscriber` boolean, and an `author` block with the sending user's profile.
2343+
Fired when the filtered user receives a chat message in a broadcast that they own. Private event — requires user-context authentication with the `broadcast.read` scope. The `payload` includes the `broadcast_id`, the chat `message_id` and `message` text, an `is_subscriber` boolean, an `is_moderator` boolean, and an `author` block with the sending user's profile. The broadcast owner is reported as `is_moderator: false` in their own broadcast.
23442344

23452345
```json title="broadcast.chat" expandable lines wrap icon="/icons/xds/icon-brackets.svg"
23462346
{
@@ -2356,6 +2356,7 @@ Fired when the filtered user receives a chat message in a broadcast that they ow
23562356
"message_id": "2090000000000000004",
23572357
"message": "test",
23582358
"is_subscriber": false,
2359+
"is_moderator": false,
23592360
"author": {
23602361
"data": {
23612362
"affiliation": {

0 commit comments

Comments
 (0)