tmijs / tmi.js

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

client.on('redeem', ....) doesn't listen for reward redemption without viewer message #537

Closed Vittor-Javidan closed 1 year ago

Vittor-Javidan commented 1 year ago

Actual behavior: The client.on('redeem', ...) event only fires when a user sends a message. It is unclear if this is the intended behavior, as the client.on('message', ...) event can also be used to listen for redemption, as the reward ID is included in the userstate object.

Expected behavior: Based on the name of the event, client.on('redeem', ...), I would expect to be able to listen for all channel redemption's, regardless of whether or not there is a corresponding viewer chat message.

Configuration

AlcaDesign commented 1 year ago

This is the only data that Twitch sends to tmi.js, so that's the only type of redemption that can be supported over IRC.