whenChannelEvent

inline fun <T> ChatEvent.whenChannelEvent(block: (ChannelEvent) -> T): T?