Client.prototype.api will now warn on use as it's deprecated and will be removed by the next minor version, 1.9.0. It's not intended to be a great choice for API requests.
Need to rewrite code to use a different library to use Twitch API calls
Probably using twitch package, but there is no preference to which library to use
Starting with tmi.js version 1.8.0
Need to rewrite code to use a different library to use Twitch API calls Probably using twitch package, but there is no preference to which library to use