var twitch = window.Twitch.ext
twitch.onAuthorized(auth => {
if (auth.token) {
twitch.listen('whisper-'+auth.userId, (e, c, t)=>{
console.log(e,c,t)
})
}
})
Its essentially just this wrapped in a react context.
var twitch = window.Twitch.ext
twitch.onAuthorized(auth => {
if (auth.token) {
twitch.listen('whisper-'+auth.userId, (e, c, t)=>{
console.log(e,c,t)
})
}
})
Its essentially just this wrapped in a react context.