Skip to main content

parse_events_api

Function parse_events_api 

Source
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 NoneIgnore.