TMIJS API TWITCH (Command !setGame ou !setTitle)

The same token you use for updating the channel, you can use to get the gameID

so you probably want to

  • refresh token to get new access token
  • game name to game id
  • update channel with new game id

You have a “get channel information” call in there for some reason?