Hello Twitch Developers,
I’m a small developer who recently created an account to build a Twitch bot (in JS). I’ve been working on a bot that can manage various aspects of a Twitch channel, including updating the stream title using the channel:manage:broadcast
scope.
The bot works perfectly on its own channel, where it is the broadcaster. However, when I try to use the same command on my main Twitch channel, where the bot is set as both a moderator and an editor, I receive an “Unauthorized” error.
Here’s a summary of the issue:
- The bot has the
channel:manage:broadcast
scope. - The bot is a broadcaster on its own channel and successfully updates the stream title.
- On my main channel, where the bot is set as a moderator and editor, it fails to update the stream title and returns an “Unauthorized” error.
Here’s how my code work:
- channelId : work properly on each twitch channel
- I have implemented a check in the bot to verify a user’s role when they issue a command
Has anyone else experienced this issue, or does anyone have insights on why this might be happening? I appreciate any help or guidance you can provide.
Thank you in advance !