Skip to content

tmi.js v1.4.3

Compare
Choose a tag to compare
@AlcaDesign AlcaDesign released this 15 Jun 10:16
  • Parse the badge-info tag like badges. This offers some information about certain badges in the badges tag.
    • This means that the user has the 12-month subscriber badge but more specifically have subscribed for 21 months:
    { "badge-info": { subscriber: "21" }, badges: { subscriber: "12" } }
  • Automatically unescapes strings in the tags. This replaces "\\s", "\\:", "\\n", and "\\r" with " ", ";", "" (empty), and "" (empty) respectively.
    "Channel\\sSubscription\\s(Schmoopiie)" // Input
    "Channel Subscription (Schmoopiie)" // Output
  • Added the event "primepaidupgrade". Fires when a user converts from a Prime subscription to a regular subscription. Their subscription will continue after the Prime subscription ends.
    client.on("primepaidupgrade", (channel, username, methods, userstate) => {});
  • Removed extra-utils from the library. This wasn't documented nor recommended and would be better supplied by userland anyway.
  • Fixed a case when joining a channel that no longer exists would cause the .join() command's callbacks to register incorrectly. (#342)