Skip to content

Video

Represents a Twitch video.

Extends

  • Base<T>

Type parameters

Type parameter
T extends EventSubConnection

Constructors

new Video()

1
new Video<T>(chatbot: ChatBot<T>, data: Video): Video<T>

Parameters

ParameterType
chatbotChatBot<T>
dataVideo

Returns

Video<T>

Overrides

Base<T>.constructor

Source

twitchfy/packages/chatbot/src/structures/Video.ts:72

Properties

PropertyModifierTypeDescriptionInherited from
chatbotreadonlyChatBot<T>The current instance of the chatbot.Base.chatbot
descriptionreadonlystringThe description of the video.-
idreadonlystringThe id of the video.-
languagereadonlystringThe language of the video.-
mutedSegmentsreadonlynull | MutedSegment[]The muted segments of the video.-
streamIdreadonlynull | stringThe id of the stream the video was created from. If the stream was ended this will be null.-
titlereadonlystringThe title of the video.-
typereadonlyVideoTypeThe type of the video.-
urlreadonlystringThe video’s url.-
userreadonlyBaseUser<T>The user who created the video.-
viewCountreadonlynumberThe number of views the video has.-

Accessors

createdAt

1
get createdAt(): Date

The creation date of the video in JavaScript Date object.

Returns

Date

Source

twitchfy/packages/chatbot/src/structures/Video.ts:90


duration

1
get duration(): number

The duration of the video in seconds.

Returns

number

Source

twitchfy/packages/chatbot/src/structures/Video.ts:113


publishedAt

1
get publishedAt(): Date

The publish date of the video in JavaScript Date object.

Returns

Date

Source

twitchfy/packages/chatbot/src/structures/Video.ts:97

Methods

thumbnailURL()

1
thumbnailURL(options?: ThumbailOptions): string

The thumbnail URL of the video.

Parameters

ParameterTypeDescription
options?ThumbailOptionsThe options for the thumbnail.

Returns

string

The thumbnail URL of the video.

Source

twitchfy/packages/chatbot/src/structures/Video.ts:106