tmijs / tmi.js

💬 Javascript library for the Twitch Messaging Interface. (Twitch.tv)
https://tmijs.com
MIT License
1.54k stars 216 forks source link

"redeem" event not working #491

Closed marcosknudsen closed 2 years ago

marcosknudsen commented 2 years ago

client.on("redeem",(channel,user,type,tags)=>{ console.log("AA") }) Actual behaviour: no log

Expected behaviour: log "AA"

Error log:

Insert your error log here

Server configuration

AlcaDesign commented 2 years ago

Redemptions only work with tmi.js if the reward requires user input. Twitch may also remove channel point redemptions from IRC at any point but I feel rewards with a message will stay. Try logging the incoming IRC and figure out if you're actually receiving any data when a reward is redeemed.

client.connect()
.then(() => {
    client.ws.addEventListener('message', ({ data }) => {
        console.log(data);
    });
});