Skip to content

tmi.js v1.4.5

Compare
Choose a tag to compare
@AlcaDesign AlcaDesign released this 16 Jun 10:00

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.