-
-
Notifications
You must be signed in to change notification settings - Fork 256
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add
LiveChatRestrictedParticipation
node (#267)
- Loading branch information
Showing
2 changed files
with
18 additions
and
0 deletions.
There are no files selected for viewing
16 changes: 16 additions & 0 deletions
16
src/parser/classes/livechat/items/LiveChatRestrictedParticipation.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
import { YTNode } from '../../../helpers'; | ||
import Text from '../../misc/Text'; | ||
|
||
class LiveChatRestrictedParticipation extends YTNode { | ||
message: Text; | ||
icon_type?: string; | ||
|
||
constructor(data: any) { | ||
super(); | ||
this.message = new Text(data.message); | ||
this.icon_type = data?.icon?.iconType; | ||
// TODO: parse onClickCommand | ||
} | ||
} | ||
|
||
export default LiveChatRestrictedParticipation; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters