ifChannelEvent

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