import type { BilibiliInternal } from '@laplace.live/internal' /** * General notice event * * 通用通知事件 * 可以是大乱斗、礼物公告等各种通知: * * 礼物通告: * * ```json * [{"font_color":"#FB7299","text":"xxx在元气赏中五连抽!送出了好多礼物!","type":1}] * ``` * * 干杯之旅礼物,Nov 22, 2024 左右添加的礼物事件😅 * * ```json * [ * { * type: 1, * font_color: '#FF7373', * text: 'スパラノイア', * }, * { * type: 1, * font_color: '#99A5AE', * text: '投喂', * }, * { * type: 1, * font_color: '#FF7373', * text: '干杯之旅', * }, * ] * ``` * * @see BilibiliInternal.WebSocket.Prod.COMMON_NOTICE_DANMAKU for the original version */ export interface Notice { type: 'notice' id: string origin: number originIdx: number uid: number username: string timestamp: number timestampNormalized: number message: string messageRaw: BilibiliInternal.WebSocket.Prod.NoticeSegment[] terminals: BilibiliInternal.WebSocket.Prod.COMMON_NOTICE_DANMAKU['data']['terminals'] read: boolean }