OneSDK — OneComme 9.2.0-beta.6
    Preparing search index...
    interface CommentResponse {
        approvedAfterAutoModeration?: boolean;
        autoModerated: boolean;
        badges: BaseBadge[];
        colors?: Colors;
        comment: string;
        commentVisible?: boolean;
        currency?: string;
        displayName?: string;
        event?: CommentEvent;
        giftCount?: number;
        giftId?: string;
        giftMembershipLevelName?: string;
        giftReceivers?: SponsorshipGiftReceivers[];
        giftType?: YouTube.GiftType;
        hasGift: boolean;
        id: string;
        isFirstTime?: boolean;
        isMember: boolean;
        isModerator: boolean;
        isOwner: boolean;
        isQuestion?: boolean;
        isRepeater?: boolean;
        isSponsorshipGiftReceiver?: boolean;
        isSponsorshipGiftSender?: boolean;
        isSupporter?: boolean;
        jewels?: number;
        liveId: string;
        membership?: MemberShip;
        meta?: CommentMeta;
        name: string;
        nickname?: string;
        originalProfileImage?: string;
        originalUser?: { name?: string; profileImage?: string };
        paidText?: string;
        price?: number;
        profileImage: string;
        screenName?: string;
        speechText?: string;
        tier?: number;
        timestamp: string;
        translated?: string;
        unit?: string;
        userId: string;
    }

    Hierarchy (View Summary)

    Index

    Properties

    approvedAfterAutoModeration?: boolean

    自動保留(autoModerated)されていたコメントが、その後モデレーター/配信者に 承認されて表示に回ったことを示す。承認コメントは元の投稿時刻を保持するため、 表示側で「保留から承認」を明示し、古い場合は読み上げを抑止する。

    autoModerated: boolean
    badges: BaseBadge[]
    colors?: Colors
    comment: string
    commentVisible?: boolean
    currency?: string
    displayName?: string
    event?: CommentEvent

    コメントとして流れないイベントをコメント形式で扱うときに付与される。

    giftCount?: number

    ジュエルギフト連投の走行合計。表示側で同一 giftId をまとめる際、 再表示順に依らず最大値を採用するために使う(過少表示の防止)。

    メンバーシップギフト送信(membershipGiftingDetails)でも、贈った件数 (giftMembershipsCount)をここに転記する(ギフト記録の集計用)。 こちらは giftId を持たないため、ジュエルコンボの集約には影響しない。

    giftId?: string

    ジュエルギフト連投の集約キー。yt-正規化ハンドル-ギフトアセット名 を base とし、 コンボ発火時にバーストのアンカー id を付した base#アンカーid の形になる。 表示側は同一 giftId のコメントを 1 行にまとめる。

    giftMembershipLevelName?: string

    メンバーシップギフト送信(membershipGiftingDetails.giftMembershipsLevelName)の 贈答先ティア名。表示文(comment.comment)には埋め込まれるが構造化フィールドには 残らないため、レベル別の単価を後から突き合わせられるよう別途保持する(ギフト記録用)。 membership(受信側の表示用バッジ文言 {primary, sub})とは別物なので混同しないこと。

    giftReceivers?: SponsorshipGiftReceivers[]
    giftType?: YouTube.GiftType
    hasGift: boolean
    id: string
    isFirstTime?: boolean
    isMember: boolean
    isModerator: boolean
    isOwner: boolean
    isQuestion?: boolean
    isRepeater?: boolean
    isSponsorshipGiftReceiver?: boolean
    isSponsorshipGiftSender?: boolean
    isSupporter?: boolean
    jewels?: number

    ジュエルギフト 1 送信あたりの消費ジュエル単価。サーバー配布テーブルで 突合が確定した asset にのみ設定され、未確定時は undefined(=消費数は非表示のまま フォールバック)。合計は jewels × (giftCount ?? 1) で導出し、専用の合計フィールドは 持たない(コンボ更新との二重管理を避ける)。

    jewels が確定している間は price にも合計(jewels × (giftCount ?? 1)、整数)が 併せて設定される。price はスパチャ等の金額と同じ器を流用したもので、 ジュエルでは通貨金額ではなく消費個数の合計を表す(unit/currency は設定しない)。 未確定時は price も付与しない。

    liveId: string
    membership?: MemberShip
    name: string
    nickname?: string
    originalProfileImage?: string
    originalUser?: { name?: string; profileImage?: string }

    このコメントが運ぶユーザー属性(name/profileImage/badges)が部分的にしか 信頼できないことを示す印。存在すること自体が印になる。

    ここに入っている項目(name/profileImage)だけが加工前の実値。入っていない 項目と badges は表示用に加工された値やフォールバック値の可能性があるため、 実際の視聴者情報として扱ってはならない。 このフィールド自体が無いコメントは、従来どおり全項目を実値として扱ってよい。

    paidText?: string
    price?: number
    profileImage: string
    screenName?: string
    speechText?: string
    tier?: number
    timestamp: string
    translated?: string
    unit?: string

    use currency ex. JPY/USD...

    userId: string