Closed Aiuzu42 closed 2 years ago
Added support to subscribe to a topic for the channel points redemption event. Example usage:
channelId := "aghagnaisgnas" //example target channel ID oAuthToken := ""sasngassugngasg" //example oauth access token, requires channel:read:redemptions scope con target channel pubsubClient := twitchpubsub.NewClient(twitchpubsub.DefaultHost) pubsubClient.Listen(twitchpubsub.PointsEventTopic(channelId), oAuthToken) pubsubClient.OnPointsEvent(onChannelPointsRedeemed) go pubsubClient.Start()
Added support to subscribe to a topic for the channel points redemption event. Example usage: