I’m working on a bot using the tmi.js library and running into a permissions problem. When I try to host another channel, I keep getting an error message.
Here’s what I’m trying to do:
botClient.say(`#${myChannel}`, `/host streamername`);
Or using the dedicated method:
botClient.host(`#${myChannel}`, `streamername`).then(function(result) {
console.log(result);
}).catch(function(error) {
console.log(error.toString());
});
But I always get this error:
info: [#<mychannel>] You don't have permission to perform that action.
Other commands work fine like sending regular messages:
botClient.say(`#${myChannel}`, 'Hello everyone');
I’m the channel owner and I’m using my own username and OAuth token for authentication. The connection works and I can send normal chat messages without any issues. What could be causing this permission error when trying to host?