whenPublicChatEvent

inline fun <T> ChatEvent.whenPublicChatEvent(block: (PublicChatEvent) -> T): T?