youtubei.js / LiveChatContinuation
Class: LiveChatContinuation
Extends
Constructors
new LiveChatContinuation()
new LiveChatContinuation(
data
):LiveChatContinuation
Parameters
• data: RawNode
Returns
Overrides
Defined in
src/parser/continuations.ts:174
Properties
action_panel
action_panel:
null
|YTNode
Defined in
src/parser/continuations.ts:160
actions
actions:
ObservedArray
<YTNode
>
Defined in
src/parser/continuations.ts:159
continuation
continuation:
Continuation
Defined in
src/parser/continuations.ts:171
emojis
emojis:
object
[]
Defined in
src/parser/continuations.ts:165
header
header:
null
|LiveChatHeader
Defined in
src/parser/continuations.ts:162
item_list
item_list:
null
|LiveChatItemList
Defined in
src/parser/continuations.ts:161
participants_list
participants_list:
null
|LiveChatParticipantsList
Defined in
src/parser/continuations.ts:163
popout_message
popout_message:
null
|Message
Defined in
src/parser/continuations.ts:164
type
readonly
type:string
Inherited from
Defined in
viewer_name
viewer_name:
string
Defined in
src/parser/continuations.ts:172
type
readonly
static
type:"liveChatContinuation"
='liveChatContinuation'
Overrides
Defined in
src/parser/continuations.ts:157
Methods
as()
as<
T
,K
>(...types
):InstanceType
<K
[number
]>
Cast to one of the given types.
Type Parameters
• T extends YTNode
• K extends YTNodeConstructor
<T
>[]
Parameters
• ...types: K
The types to cast to
Returns
InstanceType
<K
[number
]>
The node cast to one of the given types
Throws
If the node is not of the given type
Inherited from
Defined in
hasKey()
hasKey<
T
,R
>(key
):this is LiveChatContinuation & { [k in string]: R }
Check for a key without asserting the type.
Type Parameters
• T extends string
• R = any
Parameters
• key: T
The key to check
Returns
this is LiveChatContinuation & { [k in string]: R }
Whether the node has the key
Inherited from
Defined in
is()
is<
T
,K
>(...types
):this is InstanceType<K[number]>
Check if the node is of the given type.
Type Parameters
• T extends YTNode
• K extends YTNodeConstructor
<T
>[]
Parameters
• ...types: K
The type to check
Returns
this is InstanceType<K[number]>
whether the node is of the given type
Inherited from
Defined in
key()
key<
T
,R
>(key
):Maybe
Assert that the node has the given key and return it.
Type Parameters
• T extends string
• R = any
Parameters
• key: T
The key to check
Returns
The value of the key wrapped in a Maybe
Throws
If the node does not have the key