OneSDK — OneComme 9.1.1
    Preparing search index...
    interface CommentResponse {
        approvedAfterAutoModeration?: boolean;
        autoModerated: boolean;
        badges: BaseBadge[];
        colors?: Colors;
        comment: string;
        commentVisible?: boolean;
        currency?: string;
        displayName?: string;
        giftCount?: number;
        giftId?: 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;
        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)されていたコメントが、その後モデレーター/配信者に 承認されて表示に回ったことを示す。承認コメントは元の投稿時刻を保持するため、 表示側で「保留から承認」を明示し、古い場合は読み上げを抑止する(ONE-134)。

    autoModerated: boolean
    badges: BaseBadge[]
    colors?: Colors
    comment: string
    commentVisible?: boolean
    currency?: string
    displayName?: string
    giftCount?: number

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

    giftId?: string

    ジュエルギフト連投の集約キー。ONE-72。パーサがチャット項目段階で base (yt-正規化ハンドル-ギフトアセット名)を付与し、コンボ発火時にバーストのアンカー id (先頭チャット項目 id、構造的に一意)を付す(base#アンカーid)。表示側で同一 giftId を 1 行にまとめる(連番だと掃除で履歴が消えたとき巻き戻り、別コンボが衝突する。ONE-96)。

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

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

    liveId: string
    membership?: MemberShip
    name: string
    nickname?: string
    originalProfileImage?: string
    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