Skip to content

Commit 868670c

Browse files
committed
chore: release v0.1.12
1 parent 794dede commit 868670c

File tree

2 files changed

+12
-2
lines changed

2 files changed

+12
-2
lines changed

README.md

+11-1
Original file line numberDiff line numberDiff line change
@@ -100,9 +100,13 @@ export type Handler = {
100100

101101
type msgType = 'DANMU_MSG'
102102

103-
interface DanmuMsg {
103+
export interface DanmuMsg {
104104
user: User
105105
content: string
106+
/** 发送时间,毫秒时间戳 */
107+
timestamp: number
108+
/** 是否为天选抽奖弹幕 */
109+
lottery: boolean
106110
/** 弹幕表情 */
107111
emoticon?: {
108112
id: string
@@ -207,6 +211,12 @@ export interface GiftMsg {
207211
price: number
208212
/** 礼物数量 */
209213
amount: number
214+
/** 送礼指向主播信息,多人直播间可指定要送给的主播,单人直播间为空 */
215+
send_master?: {
216+
uid: number
217+
uname: string
218+
room_id: number
219+
}
210220
}
211221
```
212222

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "blive-message-listener",
3-
"version": "0.1.11",
3+
"version": "0.1.12",
44
"description": "Bilibili-live danmu listener with type",
55
"main": "dist/index.js",
66
"module": "dist/index.mjs",

0 commit comments

Comments
 (0)