github tmijs/tmi.js v1.4.5
tmi.js v1.4.5

latest releases: v1.9.0-pre.1, v1.9.0-pre.0, v1.8.5...
4 years ago

v1.4.5

  • Added the event "automod" for the "msg_rejected" and "msg_rejected_mandatory" msg-id's. #273
    client.on("automod", (channel, msgID, message) => {});
    The msgID of "msg_rejected" means the message was caught by Automod but may still be accepted by a human. "msg_rejected_mandatory" means the message was automatically rejected due to moderation settings.

v1.4.4

  • The client's connection must now be OPEN instead of not CLOSING and not CLOSED. #338
  • Trying to send a message while not authorized (using an anonymous identity) will reject with "Cannot send anonymous messages." but still rejecting with "Not connected to server." for disconnected clients.
    const client = new tmi.Client();
    client.say("twitch", "Hello world.")
      .catch(console.error); // Logs "Not connected to server."
    client.connect()
      .then(() => client.say("twitch", "Hello world."))
      .catch(console.error); // Logs "Cannot send anonymous messages."
  • Altered the auto-joiner for the channels option to use the .join method instead of directly sending a raw message. Errors are sent to the logger.

Don't miss a new tmi.js release

NewReleases is sending notifications on new releases.