File tree Expand file tree Collapse file tree 2 files changed +4
-5
lines changed Expand file tree Collapse file tree 2 files changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -195,7 +195,7 @@ export type Handler = {
195
195
| onWatchedChange | 累计看过人数变化 |
196
196
| onLikedChange | 累计点赞人数变化 |
197
197
| onRankCountChange | 高能用户人数变化 |
198
- | onUserAction | 用户进入、关注、分享直播间 |
198
+ | onUserAction | 用户进入、关注、分享、点赞直播间 |
199
199
| onRoomInfoChange | 直播间信息修改 |
200
200
201
201
<details>
@@ -529,7 +529,7 @@ export interface GuardBuyMsg {
529
529
530
530
| Handler | Description |
531
531
| --- | --- |
532
- | onRoomWarn | 房间被警告/ 切断 |
532
+ | onRoomWarn | 房间被超管警告、 切断 |
533
533
534
534
<details >
535
535
<summary >Type Definitions</summary >
Original file line number Diff line number Diff line change @@ -30,10 +30,9 @@ export interface DanmuMsg {
30
30
const parser = ( data : any , roomId : number ) : DanmuMsg => {
31
31
const rawData = data . info
32
32
const content = rawData [ 1 ]
33
- // 是否包含中括号
34
- const parseInMessageEmoticon = / \[ .* ?\] / . test ( content )
33
+ const shouldParseInMessageEmoticon = / \[ .* ?\] / . test ( content )
35
34
let inMessageEmoticon
36
- if ( parseInMessageEmoticon ) {
35
+ if ( shouldParseInMessageEmoticon ) {
37
36
const messageExtraInfo = JSON . parse ( rawData [ 0 ] [ 15 ] . extra )
38
37
const emoctionDict : Record < string , {
39
38
id : string
You can’t perform that action at this time.
0 commit comments