whenContentMessage

inline fun <T> Message.whenContentMessage(block: (ContentMessage<MessageContent>) -> T): T?