OneSDK — OneComme 9.2.0-beta.6
    Preparing search index...
    interface CommentResponse {
        approvedAfterAutoModeration?: boolean;
        autoModerated?: boolean;
        badges: BaseBadge[];
        colors?: Colors;
        comment: string;
        commentVisible?: boolean;
        displayName?: string;
        event?: CommentEvent;
        gift?: BiliBili.GiftResource;
        giftCount?: number;
        giftData?: BiliBili.GiftData;
        giftId?: string;
        guard?: GuardResource;
        hasGift: boolean;
        id: string;
        isFirstTime?: boolean;
        isMember: boolean;
        isModerator: boolean;
        isOwner: boolean;
        isRepeater?: boolean;
        isSupporter?: boolean;
        liveId: string;
        medal?: UserMedalInfo;
        meta?: CommentMeta;
        name: string;
        nickname?: string;
        origin?: any;
        originalProfileImage?: string;
        originalUser?: { name?: string; profileImage?: string };
        price?: number;
        profileImage: string;
        screenName?: string;
        speechText?: string;
        superChatData?: SuperChatData;
        timestamp: string;
        userId: string;
    }

    Hierarchy (View Summary)

    Index

    Properties

    approvedAfterAutoModeration?: boolean

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

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

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

    giftCount?: number

    ギフト個数(SEND_GIFT の GiftData.num)。1 回の受信イベントに含まれる個数で、 YouTube/Twitch のようなコンボ集約の走行合計ではない(連投は別コメントとして届く)。 price は単価のままなので、消費額は price × giftCount で導出する。 値が取れない場合は設定しない(undefined のまま。0/NaN は入れない)。

    giftData?: BiliBili.GiftData
    giftId?: string
    hasGift: boolean
    id: string
    isFirstTime?: boolean
    isMember: boolean
    isModerator: boolean
    isOwner: boolean
    isRepeater?: boolean
    isSupporter?: boolean
    liveId: string
    name: string
    nickname?: string
    origin?: any
    originalProfileImage?: string
    originalUser?: { name?: string; profileImage?: string }

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

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

    price?: number
    profileImage: string
    screenName?: string
    speechText?: string
    superChatData?: SuperChatData
    timestamp: string
    userId: string