Channel
Represents a Twitch channel.
Extends
BaseChannel<T>
Type parameters
| Type parameter |
|---|
T extends EventSubConnection |
Constructors
new Channel()
1new Channel<T>(chatbot: ChatBot<T>, data: Channel): Channel<T>Creates a new instance of the channel.
Parameters
| Parameter | Type | Description |
|---|---|---|
chatbot | ChatBot<T> | The current instance of the chatbot. |
data | Channel | The data of the channel returned from the API. |
Returns
Channel<T>
Overrides
Source
twitchfy/packages/chatbot/src/structures/Channel.ts:43
Properties
| Property | Modifier | Type | Description | Inherited from |
|---|---|---|---|---|
broadcaster | readonly | BaseUser<T> | The broadcaster of the channel. | BaseChannel.broadcaster |
chatbot | readonly | ChatBot<T> | The current instance of the chatbot. | BaseChannel.chatbot |
chatroom | readonly | ChatRoom<T> | The chatroom of the channel. | BaseChannel.chatroom |
classificationLabels | readonly | string[] | The classification labels of the channel. | - |
game | readonly | Game | The game which was currently set into the channel. | - |
id | readonly | string | The id of the channel. | BaseChannel.id |
isBrandedContent | readonly | boolean | Whether the channel has branded content. | - |
tags | readonly | string[] | The tags of the channel. | - |
Accessors
bans
1get bans(): BanManager<T>The chatroom bans manager. See BanManager.
Returns
BanManager<T>
Source
twitchfy/packages/chatbot/src/structures/BaseChannel.ts:51
broadcasterId
1get broadcasterId(): stringThe id of the broadcaster who owns the channel.
Returns
string
Source
twitchfy/packages/chatbot/src/structures/BaseChannel.ts:37
chatroomId
1get chatroomId(): stringThe id of the chatroom of the channel.
Returns
string
Source
twitchfy/packages/chatbot/src/structures/BaseChannel.ts:44
chatters
1get chatters(): ChatterManager<T>The chatroom chatters manager. See ChatterManager.
Returns
Source
twitchfy/packages/chatbot/src/structures/BaseChannel.ts:81
language
1get language(): stringThe language that was set to the channel.
Returns
string
Source
twitchfy/packages/chatbot/src/structures/Channel.ts:63
messages
1get messages(): MessageManager<T>The chatroom messages manager. See MessageManager.
Returns
Source
twitchfy/packages/chatbot/src/structures/BaseChannel.ts:65
timeouts
1get timeouts(): TimeoutManager<T>The chatroom timeouts manager. See TimeoutManager.
Returns
Source
twitchfy/packages/chatbot/src/structures/BaseChannel.ts:58
title
1get title(): null | stringThe title of the channel. If it was never set, it will return a nullish value.
Returns
null | string
Source
twitchfy/packages/chatbot/src/structures/Channel.ts:56
warns
1get warns(): WarnsManager<T>The chatroom warns manager. See WarnsManager.
Returns
WarnsManager<T>
Source
twitchfy/packages/chatbot/src/structures/BaseChannel.ts:73
Methods
clips()
1clips(options?: Omit<GetClipsOptions<true>, "broadcaster_id">): Promise<null | Clip<T>[]>Fetches the clips of the channel from the API.
Parameters
| Parameter | Type | Description |
|---|---|---|
options? | Omit<GetClipsOptions<true>, "broadcaster_id"> | The options to fetch the clips. |
Returns
Promise<null | Clip<T>[]>
An array containing the clips of the channel.
Inherited from
Source
twitchfy/packages/chatbot/src/structures/BaseChannel.ts:106
emotes()
1emotes(): Promise<Collection<string, ChannelEmote<T>>>Fetches all the emotes of this channel.
Returns
Promise<Collection<string, ChannelEmote<T>>>
The a Collection containing all the emotes of the channel.
Inherited from
Source
twitchfy/packages/chatbot/src/structures/BaseChannel.ts:88
fetch()
1fetch(): Promise<Channel<T>>Fetches the current channel from the API.
Returns
Promise<Channel<T>>
The fetched channel from the API.
Inherited from
Source
twitchfy/packages/chatbot/src/structures/BaseChannel.ts:119
isModerator()
1isModerator(): Promise<boolean>Returns
Promise<boolean>
Inherited from
Source
twitchfy/packages/chatbot/src/structures/BaseChannel.ts:111
stream()
1stream(): Promise<null | Stream<T>>Fetches the current stream of the channel from the API.
Returns
Promise<null | Stream<T>>
The current stream or null if the stream is offline.