Channel - Change Game Event
Description
The ChannelChangeGameEvent is triggered when a monitored channel changes the game.
Dependencies
Requires the specific channels to be registered with the TwitchClient Helper. See TwitchClientHelper
Examples
Example 1
- Java
- Kotlin
- Groovy
eventManager.onEvent(ChannelChangeGameEvent.class, event -> {
System.out.println("[" + event.getChannel().getName() + "] is now playing " + event.getGameId() + "!");
});
eventManager.onEvent(ChannelChangeGameEvent::class.java) { event ->
println("[${event.channel.name}] is now playing ${event.gameId}!")
}
eventManager.onEvent(ChannelChangeGameEvent) { event ->
System.out.println "[${event.channel.name}] is now playing ${event.gameId}!"
}