pub fn parse_events_api(payload: &Value) -> Option<SlackInboundEvent>Expand description
Parse a Socket Mode events_api payload into a
SlackInboundEvent::PairingDm, or None if it is not a member DM (the
bot’s own echo is suppressed: subtype == "bot_message" or bot_id
present). pub so the wire-parse + MC-6 gates exercise the REAL parser:
a non-im channel message or a bot echo yields None ⇒ Ignore.