@laplace.live/event-types
    Preparing search index...

    Interface SuperChat

    interface SuperChat {
        avatar: string;
        avatarFrame: string;
        deleted: boolean;
        duration: number;
        guardBackground: string;
        guardType: number;
        id: string;
        isAudited: number;
        medal: FansMedal;
        message: string;
        messageColor: string;
        messageTrans: string;
        origin: number;
        originIdx: number;
        price: number;
        priceNormalized: number;
        rate: number;
        read: boolean;
        scAmount: number;
        scId: number;
        scName: string;
        timestamp: number;
        timestampNormalized: number;
        token: string;
        transMark: number;
        type: "superchat";
        uid: number;
        username: string;
    }
    Index

    Properties

    avatar: string
    avatarFrame: string
    deleted: boolean

    该 SC 是否被删除,由 SUPER_CHAT_MESSAGE_DELETE 事件触发

    duration: number

    How long this SC will appear in seconds

    guardBackground: string
    guardType: number

    0: 白字 1: 总督 2: 提督 3: 舰长

    id: string

    在极端情况下,例如直播间开启了全员 SC 审核,那么会导致 id 重复,因此需要从 data.id 中获取唯一识别符,在开放平台中为 data.message_id

    isAudited: number

    是否是被审核过的 SC

    • 0: 无审核
    • 1: 已审核
    medal: FansMedal

    Color in HEX

    message: string
    messageColor: string

    Message color in HEX format

    messageTrans: string

    SC 翻译正文

    用户勾选翻译的话可用,目前为日文

    如果直播间见开启了 SC 全局审核,那么所有的 SC 都会自动附上翻译,需要通过 transMark 判断 是否真的开启了 SC 翻译

    origin: number
    originIdx: number
    price: number
    priceNormalized: number

    实际货币单位的价格

    rate: number

    未知

    read: boolean
    scAmount: number
    scId: number
    scName: string
    timestamp: number
    timestampNormalized: number
    token: string

    举报 SC 时会用到

    transMark: number

    是否开启翻译

    • 0: 未开启翻译
    • 1: 已开启翻译
    type: "superchat"
    uid: number
    username: string