Skip to main content

Topic - Hype Train Rewards

Description

This topic can be used to monitor the distribution of rewards associated with hype trains for a given channel.

With all undocumented topics, use at your own risk.

Method Definition

NameTypeDescription
credentialOAuth2CredentialUser Auth Token (may not necessarily be required)
channelIdStringTarget Channel Id

Code-Snippets

Subscribe to hype train rewards for channel twitch4j and register a listener that prints all messages to console

twitchClient.getPubSub().listenForHypeTrainRewardEvents(credential, "149223493");

twitchClient.getEventManager().onEvent(HypeTrainRewardsEvent.class, System.out::println);