Fetch for Twitch channel and Emotes. (Includes BTTV, FFZ and 7TV)
- Fetch for Twitch channel
- Fetch for Twitch emotes
- Fetch for BetterTTV emotes (Using bttv's API)
- Fetch for FFZ emotes (Using ffz's API)
- Fetch for 7TV emotes (Using my own unofficial GQL API for 7TV)
Initialize client
const TwitchFetcher = require("twitch-fetcher");
var fetcher = new TwitchFetcher({
clientId: "01234abcde",
OAuth: "56789fghij"
});
Using as ES Module
import TwitchFetcher from "twitch-fetcher";
let fetcher = new TwitchFetcher({
clientId: "01234abcde",
OAuth: "56789fghij"
});
Fetch 7TV Emotes
// By username
await fetcher.getEmotesByName("sammwy", {"7tv": true});
// By ID
await fetcher.getEmotesByID("0123456abcdefg", {"7tv": true});
Fetch BTTV Emotes
// By username
await fetcher.getEmotesByName("sammwy", {bttv: true});
// By ID
await fetcher.getEmotesByID("0123456abcdefg", {bttv: true});
Fetch FFZ Emotes
// By username
await fetcher.getEmotesByName("sammwy", {ffz: true});
// By ID
await fetcher.getEmotesByID("0123456abcdefg", {ffz: true});
Fetch Twitch Emotes
// By username
await fetcher.getEmotesByName("sammwy", {twitch: true});
// By ID
await fetcher.getEmotesByID("0123456abcdefg", {twitch: true});
Fetch Twitch User
// By username
await fetcher.getUserData({username: "sammwy"});
// By ID
await fetcher.getUserData({id: "0123456abcdefg"});
Support all EnhancedTwitch's projects making a Donation in PayPal, Ko-fi or Patreon