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

    Interface Toast

    interface Toast {
        avatar: string;
        color: string;
        duration: number;
        effectId: number;
        id: string;
        message: string;
        mockPrice: boolean;
        origin: number;
        originIdx: number;
        price: number;
        priceNormalized: number;
        read: boolean;
        timestamp: number;
        timestampNormalized: number;
        toastAmount: number;
        toastAmountUnit: string;
        toastId: number;
        toastName: string;
        toastTotalCount: number;
        toastType: number;
        type: "toast";
        uid: number;
        username: string;
    }
    Index

    Properties

    avatar: string

    官方事件无头像,这个字段是给开放平台用的

    color: string
    duration: number
    effectId: number

    用来触发礼物特效 id

    id: string
    message: string
    • toast_msg: <%アイノラパス%> 续费了舰长,今天是TA陪伴主播的第322天
    • toast_msg: <%スパラノイア%>续费了舰长1*8天
    • role_name: 大航海名称,舰长、提督、总督
    mockPrice: boolean

    官方事件可以获取到舰长价格,此字段给开放平台用

    开放平台已可以获取价格字段

    origin: number
    originIdx: number
    price: number

    大航海价格

    开放平台 Mar 17, 2024 之后本站支持大航海价格,api 那边不知道什么时候加的😅

    priceNormalized: number

    实际货币单位的价格

    read: boolean
    timestamp: number
    timestampNormalized: number
    toastAmount: number

    大航海数量,盲盒时该数量依然为 1

    toastAmountUnit: string

    单位,月、年,盲盒时该单位为 *8天*15天、etc

    toastId: number

    没什么用途

    toastName: string

    大航海名称,舰长,etc.

    toastTotalCount: number

    当前主播大航海总数,用于判断是否是千舰、万舰,而从使用特殊主题

    toastType: number

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

    type: "toast"
    uid: number
    username: string