ifPinnedMessage

inline fun <T> ChatEvent.ifPinnedMessage(block: (PinnedMessage) -> T): T?