import type { BilibiliInternal } from '@laplace.live/internal' /** * Red envelope result * * 红包中奖结果 * * @see BilibiliInternal.WebSocket.Prod.POPULARITY_RED_POCKET_WINNER_LIST for the original version * @see BilibiliInternal.WebSocket.Prod.POPULARITY_RED_POCKET_V2_WINNER_LIST for the original version */ export interface RedEnvelopeResult { type: 'red-envelope-result' /** * 由于要保存到数据库,此处如果 ts 设置为 Date.now() 会导致 LEF 的 id 与本地 id 不一致,最终出现重复事件 */ id: string origin: number originIdx: number uid: number username: string timestamp: number timestampNormalized: number message: string list: BilibiliInternal.WebSocket.Prod.POPULARITY_RED_POCKET_V2_WINNER_LIST['data']['winner_info'] rewards: BilibiliInternal.WebSocket.Prod.POPULARITY_RED_POCKET_V2_WINNER_LIST['data']['awards'] /** * 为了让抽奖结果进入控制台礼物栏,此处增加价格字段 */ priceNormalized: number read: boolean }