tmi.js v1.5.0
v1.5.0
- Add
isReactNative
utility function. #354 3557618
This is used byclient.api
to know when to useXMLHttpRequest
instead ofJSONP
.
const isReactNative = require('tmi.js/utils').isReactNative();
client.on('followersonly', (channel, enabled, minutes) => {
if(enabled) {
console.log('Followers-only mode was enabled without throwing an error.');
}
});