whenChatEventMessage

inline fun <T> Message.whenChatEventMessage(block: (ChatEventMessage<ChatEvent>) -> T): T?