Resource: LiveChatBan
A liveChatBan resource identifies a YouTube user and a YouTube live chat that the user is banned from participating in.
| JSON representation |
|---|
{ "kind": string, "etag": string, "id": string, "snippet": { "liveChatId": string, "type": enum, "banDurationSeconds": string, "bannedUserDetails": { "channelId": string, "channelUrl": string, "displayName": string, "profileImageUrl": string } } } |
| Fields | |
|---|---|
kind |
Output only. Identifies what kind of resource this is. Value: the fixed string |
etag |
Output only. Etag of this resource. |
id |
Output only. The ID that YouTube assigns to uniquely identify the ban. |
snippet |
Required. The |
snippet.liveChatId |
Required. Input only. The live chat to which the ban applies. The live chat ID associated with a broadcast is returned in the |
snippet.type |
Required. The type of ban. Valid values of this enum field are:
|
snippet.banDurationSeconds |
Optional. Input only. The duration of the ban, in seconds. Set a value for this property only if the ban's type is |
snippet.bannedUserDetails |
Required. Identifies the banned user. In |
snippet.bannedUserDetails.channelId |
The YouTube channel ID. |
snippet.bannedUserDetails.channelUrl |
The channel's URL. |
snippet.bannedUserDetails.displayName |
The channel's display name. |
snippet.bannedUserDetails.profileImageUrl |
The channel's avatar URL. |
Methods |
|
|---|---|
|
Removes a permanent ban that prevents a specific user from contributing to a live chat, enabling the user to rejoin the chat. |
|
Bans a specific user from participating in a live chat. |