Channel - Go Offline Event
Description
The ChannelGoOfflineEvent is triggered when a monitored channel goes offline.
Dependencies
Requires the specific channels to be registered with the TwitchClient Helper. See TwitchClientHelper
Examples
Example 1
- Java
- Kotlin
- Groovy
eventManager.onEvent(ChannelGoOfflineEvent.class, event -> {
System.out.println("[" + event.getChannel().getName() + "] just went offline!");
});
eventManager.onEvent(ChannelGoOfflineEvent::class.java) { event ->
println("[${event.channel.name}] just went offline!")
}
eventManager.onEvent(ChannelGoOfflineEvent) { event ->
System.out.println "[${event.channel.name}] just went offline!"
}