Open yash1441 opened 3 years ago
(node:1638) UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'id' of undefined at Client.<anonymous> (/home/runner/TwitchBot/node_modules/twitchrequest/index.js:615:65)
Getting this error upon running the code from the example.
const { Client } = require('twitchrequest'); const options = { channels: ["xxxxx"], client_id: "xxxxx", client_secret: "xxxxx", interval: 3 }; const client = new Client(options); client.on('live', (data) => { console.log(`${data.name} is now live! Streaming ${data.title} on ${data.game}! Started at ${data.date}`); });
Bro really never got an answer
Getting this error upon running the code from the example.