new Channel(fetcher, id)
- Description:
A Twitch channel.
- Source:
Parameters:
| Name | Type | Description |
|---|---|---|
fetcher |
EmoteFetcher | The emote fetcher. |
id |
number | ID of the channel. |
Members
fetcher :EmoteFetcher
- Description:
The emote fetcher.
- Source:
The emote fetcher.
Type:
(nullable) channel_id :number
- Description:
The ID of this channel. For the global channel, the ID will be null.
- Source:
The ID of this channel. For the global channel, the ID will be null.
Type:
- number
emotes :Collection.<string, Emote>
- Description:
Cached emotes belonging to this channel.
- Source:
Cached emotes belonging to this channel.
Type:
- Collection.<string, Emote>
Methods
fetchBTTVEmotes() → {Promise.<Collection.<string, BTTVEmote>>}
- Description:
Fetches the BTTV emotes for this channel.
- Source:
Returns:
- A promise that resolves to a collection of BTTVEmotes.
- Type
- Promise.<Collection.<string, BTTVEmote>>
fetchFFZEmotes() → {Promise.<Collection.<string, FFZEmote>>}
- Description:
Fetches the FFZ emotes for this channel.
- Source:
Returns:
- A promise that resolves to a collection of FFZEmotes.
- Type
- Promise.<Collection.<string, FFZEmote>>
fetchSevenTVEmotes() → {Promise.<Collection.<string, SevenTVEmote>>}
- Description:
Fetches the 7TV emotes for this channel.
- Source:
Returns:
- A promise that resolves to a collection of SevenTVEmotes.
- Type
- Promise.<Collection.<string, SevenTVEmote>>