go-twitch
go-twitch copied to clipboard
Is there a way to update channel point redemption status via pubsub?
I'm using pubsub's OnShardMessage to listen to the channel and filtering for channel points via "community-points-channel-v1". My issue is I can't seem to find a way to actually update the channel point redemption status. This is causing issues because multiple redemptions of the same reward from a single user causes errors due to the redemption status of the previous redemption are still in unfulfilled status.
I see that the api has some structs like fulfill that looks to do what I want. Should I be mixing pubsub for listening via OnShardMessage and the API for fulfilling the reward redemption or is there a better way to do this with pubsub only? Any advice on the best way to do this?