tmijs / tmi.js

💬 Javascript library for the Twitch Messaging Interface. (Twitch.tv)
https://tmijs.com
MIT License
1.55k stars 215 forks source link

The followersonly event does not send information when enabled, only when disabled #351

Closed TheAppleFreak closed 4 years ago

TheAppleFreak commented 5 years ago

Actual behaviour: Subscribing to the followersonly event and receiving an event where on Twitch the mode was enabled results in all three fields (channel, enabled, and length) were undefined.

Expected behaviour: Those three parameters should have information for the channel in question.

Error log:

Insert your error log here

Server configuration

TheAppleFreak commented 5 years ago

I did a little digging and found the source of the bug. In client.js, it tries to emit information from the disabled array instead of enabled.