npm tmi.js 1.4.3
tmi.js v1.4.3

latest releases: 1.9.0-pre.1, 1.9.0-pre.0, 1.8.5...
5 years ago
  • 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)

Don't miss a new tmi.js release

NewReleases is sending notifications on new releases.