YouTubeスーパーチャットAPI#
/vc-official/onecomme/youtube/super APIは、以下のようなデータをOSC通信で提供します。Color型と、Timestamp型を含みます。
{
    id: string,
    liveId: string,
    userId: string,
    name: string,
    isOwner: boolean,
    isModerator: boolean,
    isMember: boolean,
    autoModerated: boolean,
    timestamp: Timestamp,
    hasGift: boolean,   // 常にtrueを持つ
    comment: string,
    displayName: string | null,
    paidText: string,
    price: number,
    unit: string,
    colors: {
        headerBackgroundColor: Color,
        headerTextColor: Color,
        bodyBackgroundColor: Color,
        bodyTextColor: Color,
        authorNameTextColor: Color,
        timestampColor: Color
    },
    tier: number,
    profileImageUrl: string
}
以下の情報もわんコメから提供されてはいますが、OSC API では提供しません:
- 容量制限があるため転送できないもの - badges: base64エンコードされた画像。
 
- 配信サービスではなくわんコメが決定しているもの - speechText: コメントを機械音声で読み上げる場合の読み方。