LiveChatModerators
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
liveChatModerator
资源表示 YouTube 实时聊天的管理员。聊天管理员可以禁止或解除用户的聊天禁言、移除消息,以及对实时聊天执行其他管理操作。
属性
下表定义了此资源中显示的属性:
属性 |
kind |
string
用于标识 API 资源的类型。该值将为 youtube#liveChatModerator 。 |
etag |
etag
此资源的 ETag。 |
id |
string
由 YouTube 分配的 ID,用于唯一标识管理员。 |
snippet |
object
snippet 对象包含有关管理员的详细信息。 |
snippet.moderatorDetails |
object
此对象包含有关管理员的详细信息。 |
snippet.moderatorDetails.channelId |
string
管理员的 YouTube 频道 ID。 |
snippet.moderatorDetails.channelUrl |
string
管理员的 YouTube 频道的网址。 |
snippet.moderatorDetails.displayName |
string
管理员的 YouTube 频道的显示名称。 |
snippet.moderatorDetails.profileImageUrl |
string
管理员 YouTube 频道的头像网址。 |
snippet.liveChatId |
string
管理员有权管理的实时聊天的 ID。与直播关联的实时聊天 ID 会在 liveBroadcast 资源的 snippet.liveChatId 属性中返回。 |
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-06-19。
[null,null,["最后更新时间 (UTC):2025-06-19。"],[[["\u003cp\u003e\u003ccode\u003eliveChatModerator\u003c/code\u003e resources represent individuals with the authority to manage a YouTube live chat, including banning/unbanning users and removing messages.\u003c/p\u003e\n"],["\u003cp\u003eThe API provides methods to list, add, and delete moderators for a live chat, requiring authorization from the live chat's channel owner.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eliveChatModerator\u003c/code\u003e resource includes properties like \u003ccode\u003emoderatorDetails\u003c/code\u003e, \u003ccode\u003eliveChatId\u003c/code\u003e, \u003ccode\u003ekind\u003c/code\u003e, \u003ccode\u003eetag\u003c/code\u003e, and \u003ccode\u003eid\u003c/code\u003e, providing comprehensive information about each moderator.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003emoderatorDetails\u003c/code\u003e section of the resource provides specific information about the moderator, such as their channel ID, URL, display name, and profile image URL.\u003c/p\u003e\n"]]],["`liveChatModerator` resources manage YouTube live chat moderators. Moderators can ban/unban users and remove messages. The API methods include: `list` to view moderators, `insert` to add new ones, and `delete` to remove them. Each moderator resource contains properties like `kind`, `etag`, and `id`, alongside `snippet` details such as `moderatorDetails` (including `channelId`, `channelUrl`, `displayName`, and `profileImageUrl`) and the associated `liveChatId`. All requests require authorization from the live chat's channel owner.\n"],null,[]]