YouTube.js
Guide
Discord
GitHub
Guide
Discord
GitHub

youtubei.js / YTNodes / LiveChatPaidMessage

Class: LiveChatPaidMessage

Extends

  • YTNode

Constructors

new LiveChatPaidMessage()

new LiveChatPaidMessage(data): LiveChatPaidMessage

Parameters

• data: RawNode

Returns

LiveChatPaidMessage

Overrides

YTNode.constructor

Defined in

src/parser/classes/livechat/items/LiveChatPaidMessage.ts:36

Properties

author

author: Author

Defined in

src/parser/classes/livechat/items/LiveChatPaidMessage.ts:16


author_name_text_color

author_name_text_color: number

Defined in

src/parser/classes/livechat/items/LiveChatPaidMessage.ts:17


body_background_color

body_background_color: number

Defined in

src/parser/classes/livechat/items/LiveChatPaidMessage.ts:20


body_text_color

body_text_color: number

Defined in

src/parser/classes/livechat/items/LiveChatPaidMessage.ts:21


context_menu_accessibility_label

context_menu_accessibility_label: string

Defined in

src/parser/classes/livechat/items/LiveChatPaidMessage.ts:24


creator_heart_button

creator_heart_button: null | CreatorHeartView

Defined in

src/parser/classes/livechat/items/LiveChatPaidMessage.ts:32


header_background_color

header_background_color: number

Defined in

src/parser/classes/livechat/items/LiveChatPaidMessage.ts:18


header_overlay_image?

optional header_overlay_image: Thumbnail[]

Defined in

src/parser/classes/livechat/items/LiveChatPaidMessage.ts:29


header_text_color

header_text_color: number

Defined in

src/parser/classes/livechat/items/LiveChatPaidMessage.ts:19


id

id: string

Defined in

src/parser/classes/livechat/items/LiveChatPaidMessage.ts:14


is_v2_style

is_v2_style: boolean

Defined in

src/parser/classes/livechat/items/LiveChatPaidMessage.ts:33


lower_bumper

lower_bumper: null | LiveChatItemBumperView

Defined in

src/parser/classes/livechat/items/LiveChatPaidMessage.ts:31


menu_endpoint

menu_endpoint: NavigationEndpoint

Defined in

src/parser/classes/livechat/items/LiveChatPaidMessage.ts:23


message

message: Text

Defined in

src/parser/classes/livechat/items/LiveChatPaidMessage.ts:15


purchase_amount

purchase_amount: string

Defined in

src/parser/classes/livechat/items/LiveChatPaidMessage.ts:22


reply_button

reply_button: null | PdgReplyButtonView

Defined in

src/parser/classes/livechat/items/LiveChatPaidMessage.ts:34


text_input_background_color

text_input_background_color: number

Defined in

src/parser/classes/livechat/items/LiveChatPaidMessage.ts:30


timestamp

timestamp: number

Defined in

src/parser/classes/livechat/items/LiveChatPaidMessage.ts:25


timestamp_color

timestamp_color: number

Defined in

src/parser/classes/livechat/items/LiveChatPaidMessage.ts:28


timestamp_text?

optional timestamp_text: string

Defined in

src/parser/classes/livechat/items/LiveChatPaidMessage.ts:27


timestamp_usec

timestamp_usec: string

Defined in

src/parser/classes/livechat/items/LiveChatPaidMessage.ts:26


type

readonly type: string

Inherited from

YTNode.type

Defined in

src/parser/helpers.ts:8


type

static type: string = 'LiveChatPaidMessage'

Overrides

YTNode.type

Defined in

src/parser/classes/livechat/items/LiveChatPaidMessage.ts:12

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

YTNode.as

Defined in

src/parser/helpers.ts:29


hasKey()

hasKey<T, R>(key): this is LiveChatPaidMessage & { [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 LiveChatPaidMessage & { [k in string]: R }

Whether the node has the key

Inherited from

YTNode.hasKey

Defined in

src/parser/helpers.ts:41


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

YTNode.is

Defined in

src/parser/helpers.ts:19


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

Maybe

The value of the key wrapped in a Maybe

Throws

If the node does not have the key

Inherited from

YTNode.key

Defined in

src/parser/helpers.ts:51

Edit this page
Last Updated:: 6/8/25, 5:43 PM
Contributors: Luan