BaseChannel
Extends
Base
<T
>
Extended by
Type parameters
Type parameter | Value |
---|---|
T extends EventSubConnection | EventSubConnection |
Constructors
new BaseChannel()
Parameters
Parameter | Type |
---|---|
chatbot | ChatBot <T > |
data | BaseChannelData |
chatroom | ChatRoom <T > |
Returns
BaseChannel
<T
>
Overrides
Base<T>.constructor
Source
twitchfy/packages/chatbot/src/structures/BaseChannel.ts:27
Properties
Property | Modifier | Type | Description | Inherited from |
---|---|---|---|---|
broadcaster | readonly | BaseUser <T > | The broadcaster of the channel. | - |
chatbot | readonly | ChatBot <T > | The current instance of the chatbot. | Base.chatbot |
chatroom | readonly | ChatRoom <T > | The chatroom of the channel. | - |
id | readonly | string | The id of the channel. | - |
Accessors
bans
The chatroom bans manager. See BanManager.
Returns
BanManager
<T
>
Source
twitchfy/packages/chatbot/src/structures/BaseChannel.ts:51
broadcasterId
The id of the broadcaster who owns the channel.
Returns
string
Source
twitchfy/packages/chatbot/src/structures/BaseChannel.ts:37
chatroomId
The id of the chatroom of the channel.
Returns
string
Source
twitchfy/packages/chatbot/src/structures/BaseChannel.ts:44
messages
The chatroom messages manager. See MessageManager.
Returns
Source
twitchfy/packages/chatbot/src/structures/BaseChannel.ts:65
timeouts
The chatroom timeouts manager. See TimeoutManager.
Returns
Source
twitchfy/packages/chatbot/src/structures/BaseChannel.ts:58
warns
The chatroom warns manager. See WarnsManager.
Returns
WarnsManager
<T
>
Source
twitchfy/packages/chatbot/src/structures/BaseChannel.ts:73
Methods
clips()
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.
Source
twitchfy/packages/chatbot/src/structures/BaseChannel.ts:98
emotes()
Fetches all the emotes of this channel.
Returns
Promise
<Collection
<string
, ChannelEmote
<T
>>>
The a Collection containing all the emotes of the channel.
Source
twitchfy/packages/chatbot/src/structures/BaseChannel.ts:80
fetch()
Fetches the current channel from the API.
Returns
Promise
<Channel
<T
>>
The fetched channel from the API.
Source
twitchfy/packages/chatbot/src/structures/BaseChannel.ts:111
isModerator()
Returns
Promise
<boolean
>
Source
twitchfy/packages/chatbot/src/structures/BaseChannel.ts:103
stream()
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.