import type { BilibiliInternal } from '@laplace.live/internal' /** * Red envelope start when viewers send red envelopes in current room * * 红包发送事件 * * @see BilibiliInternal.WebSocket.Prod.POPULARITY_RED_POCKET_START for the original version * @see BilibiliInternal.WebSocket.Prod.POPULARITY_RED_POCKET_V2_START for the original version */ export interface RedEnvelopeStart { type: 'red-envelope-start' id: string origin: number originIdx: number uid: number username: string avatar: string /** * 礼物列表 */ list: BilibiliInternal.WebSocket.Prod.POPULARITY_RED_POCKET_V2_START['data']['awards'] price: number /** * 主播实际到手的金额(20%) * Jan 17, 2025, 9:37 PM: 目前红包主播不参与分成😅没抽掉的礼物也不会退钱,会变成对应礼物退回到发送者 */ priceNormalized: number /** * 用于抽奖的金额,为发红包用户发放金额的 80%(20% 归主播) */ priceForUsers: number priceForStreamer: number /** * 红包持续时间,秒 */ duration: number icon: string message: string timestamp: number timestampNormalized: number read: boolean }