AI-generated Key Takeaways
-
liveChatModeratorresources represent individuals with the authority to manage a YouTube live chat, including banning/unbanning users and removing messages. -
The API provides methods to list, add, and delete moderators for a live chat, requiring authorization from the live chat's channel owner.
-
The
liveChatModeratorresource includes properties likemoderatorDetails,liveChatId,kind,etag, andid, providing comprehensive information about each moderator. -
The
moderatorDetailssection of the resource provides specific information about the moderator, such as their channel ID, URL, display name, and profile image URL.
A liveChatModerator resource represents a moderator for a YouTube live chat. A chat moderator has the ability to ban or unban users from a chat, remove messages, and perform other administrative actions for the live chat.
Methods
The API supports the following methods for liveChatModerators resources. All of the requests must be authorized by the owner of the live chat's channel.
- list
- Lists moderators for a live chat. Try it now.
- insert
- Adds a new moderator for the chat. Try it now.
- delete
- Removes a chat moderator. Try it now.
Resource representation
The following JSON structure shows the format of a liveChatModerators resource:
{
"kind": "youtube#liveChatModerator",
"etag": etag,
"id": string,
"snippet": {
"moderatorDetails": {
"channelId": string,
"channelUrl": string,
"displayName": string,
"profileImageUrl": string
},
"liveChatId": string
}
}Properties
The following table defines the properties that appear in this resource:
| Properties | |
|---|---|
kind |
stringIdentifies the API resource's type. The value will be youtube#liveChatModerator. |
etag |
etagThe Etag of this resource. |
id |
stringThe ID that YouTube assigns to uniquely identify the moderator. |
snippet |
objectThe snippet object contains details about the moderator. |
snippet.moderatorDetails |
objectThis object contains details about the moderator. |
snippet.moderatorDetails.channelId |
stringThe moderator's YouTube channel ID. |
snippet.moderatorDetails.channelUrl |
stringThe URL of the moderator's YouTube channel. |
snippet.moderatorDetails.displayName |
stringThe display name of the moderator's YouTube channel. |
snippet.moderatorDetails.profileImageUrl |
stringThe avatar URL of the moderator's YouTube channel. |
snippet.liveChatId |
stringThe ID of the live chat that the moderator has privileges to administer. The live chat ID associated with a broadcast is returned in the liveBroadcast resource's snippet.liveChatId property. |