doceazedo / emotettv

💬 A Twitch (BTTV, FFZ & 7TV) emotes and badges parser - built with TMI.js in mind
https://emotettv.gitbook.io
17 stars 0 forks source link

parseEmotes options (and custom emote factories) #10

Closed doceazedo closed 2 years ago

doceazedo commented 2 years ago

Add an options parameter for more flexibility and remove channelId in favor of it.

type ParseEmotesOptions = {
  channelId?: string;
  thirdPartyProviders?: {
    bttv?: boolean;
    ffz?: boolean;
  };
  customEmotes: EmotesFactory | EmotesFactory[]
}

Descriptions:

All third-party providers will be defaulted to true.