LiveChatBans
コレクションでコンテンツを整理
必要に応じて、コンテンツの保存と分類を行います。
liveChatBan
リソースは、YouTube ユーザーと、そのユーザーが参加を禁止されている YouTube チャットを識別します。
メソッド
この API は、liveChatBans
リソースの次のメソッドをサポートしています。
- insert
- 特定のユーザーがチャットに参加できないようにします。API リクエストは、チャンネル所有者または禁止に関連するチャットのモデレーターによって承認されている必要があります。今すぐ試す
- delete
- 特定のユーザーがチャットに投稿できないようにする禁止を解除し、そのユーザーがチャットに参加できるようにします。API リクエストは、チャンネル所有者または禁止に関連するチャットのモデレーターによって承認されている必要があります。今すぐ試す
プロパティ
次の表は、このリソースで使用されているプロパティの定義を示したものです。
プロパティ |
kind |
string
API リソースのタイプを識別します。値は youtube#liveChatBan になります。 |
etag |
etag
このリソースの Etag。 |
id |
string
禁止を一意に識別するために YouTube が割り当てる ID。 |
snippet |
object
snippet オブジェクトは、禁止されたユーザーを識別し、禁止に関する詳細情報を含みます。 |
snippet.liveChatId |
string
禁止が適用されるチャット。ブロードキャストに対応するチャット ID は、liveBroadcast リソースの snippet.liveChatId プロパティで返されます。 |
snippet.type |
string
禁止の種類。
このプロパティの有効な値は次のとおりです。
|
snippet.banDurationSeconds |
unsigned long
禁止の期間。このプロパティの値は、禁止のタイプが temporary の場合にのみ設定します。デフォルト値は 300 (5 分)です。 |
snippet.bannedUserDetails |
object
このオブジェクトには、禁止されたユーザーを特定する情報が含まれます。 |
snippet.bannedUserDetails.channelId |
string
禁止されたユーザーの YouTube チャンネル ID。 |
特に記載のない限り、このページのコンテンツはクリエイティブ・コモンズの表示 4.0 ライセンスにより使用許諾されます。コードサンプルは Apache 2.0 ライセンスにより使用許諾されます。詳しくは、Google Developers サイトのポリシーをご覧ください。Java は Oracle および関連会社の登録商標です。
最終更新日 2025-06-06 UTC。
[[["わかりやすい","easyToUnderstand","thumb-up"],["問題の解決に役立った","solvedMyProblem","thumb-up"],["その他","otherUp","thumb-up"]],[["必要な情報がない","missingTheInformationINeed","thumb-down"],["複雑すぎる / 手順が多すぎる","tooComplicatedTooManySteps","thumb-down"],["最新ではない","outOfDate","thumb-down"],["翻訳に関する問題","translationIssue","thumb-down"],["サンプル / コードに問題がある","samplesCodeIssue","thumb-down"],["その他","otherDown","thumb-down"]],["最終更新日 2025-06-06 UTC。"],[[["A `liveChatBan` resource identifies a YouTube user who is banned from a specific YouTube live chat."],["The API allows channel owners or moderators to insert a `liveChatBan` to ban a user or delete one to remove the ban."],["A `liveChatBan` can be either permanent or temporary, and the duration of a temporary ban can be specified in seconds."],["The `liveChatBan` resource's `snippet` object includes the ID of the live chat, the type of ban, the ban duration (if temporary), and details of the banned user."],["The `liveChatBan` resource has properties such as `kind`, `etag`, and `id`, which provide general information about the resource, such as the resource type, its ETag, and the ban's unique ID."]]],["The `liveChatBan` resource manages user bans in YouTube live chats. Key actions include: inserting a ban (`insert`) to prevent a user from participating, and deleting a ban (`delete`) to allow a user to rejoin. The resource identifies the banned user, the live chat, ban type (`permanent` or `temporary`), and ban duration in seconds. The resource properties include `kind`, `etag`, and `id`. Authorization from the channel owner or a moderator is required for both inserting and deleting.\n"]]