v0.7.2
Pre-release
Pre-release
Install
npm i @tmi.js/chat@0.7.2Changes
- dadeff2
feat: add option to control the pending channel join min rate
You can now set a minimum rate for the Client to send join calls when it's automatically joining the channels list from the Client options and when reconnecting. The default value ofjoinDelayMsis 500 milliseconds (10 seconds / 20 calls). See the Twitch documentation on join rate limits for more information. Ping time is not taken into account and there is no jitter. 500ms should be about right to ensure no joins are dropped for rate limiting. I recommend a lower value like 350ms if there are a lot of channels to join.
This does not affect calling the join method directly if you want full control.
const client = new tmi.Client({ channels, joinDelayMs: 350 });- 2862802
fix: track if the client did connect anonymously
The Client propertydidConnectAnonymouslywill keep track of if the Client connected anonymously.
Full Changelog: v0.7.1...v0.7.2