Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add channel_leave message push type #107

Merged
merged 1 commit into from
Apr 13, 2022

Conversation

fussybeaver
Copy link
Contributor

Due to error:

\"unknown variant `channel_leave`, expected one of `bot_message`, `me_message`, `channel_join`, `bot_add`, `bot_remove`, `channel_topic`, `channel_purpose`, `channel_name`, `message_changed`, `message_deleted`, `thread_broadcast`, `tombstone`, `joiner_notification`, `slackbot_response`\"

In payload:

{
  "envelope_id": "7070764d-a47c-4969-9638-64dcd9dbb832",
  "payload": {
    "token": "hRcCJba8Je3CQu4LmsDNH5Ww",
    "team_id": "_redacted_",
    "api_app_id": "_redacted_",
    "event": {
      "type": "message",
      "subtype": "channel_leave",
      "ts": "1649770793.940659",
      "user": "UMVCS7CDU",
      "text": "<@UMVCS7CDU> has left the channel",
      "channel": "C033G46KA8L",
      "event_ts": "1649770793.940659",
      "channel_type": "channel"
    },
    "type": "event_callback",
    "event_id": "Ev03ARCB2PD5",
    "event_time": 1649770793,
    "authorizations": [
      {
        "enterprise_id": null,
        "team_id": "_redacted_",
        "user_id": "U02SNDCEZB5",
        "is_bot": true,
        "is_enterprise_install": false
      }
    ],
    "is_ext_shared_channel": false,
    "event_context": "_redacted_"
  },
  "type": "events_api",
  "accepts_response_payload": false,
  "retry_attempt": 2,
  "retry_reason": "timeout"
}

Unsure if I need to add any serialization structs, but doesn't look like it at first glance..

Copy link
Owner

@abdolence abdolence left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍🏻

@abdolence abdolence merged commit 95d0699 into abdolence:master Apr 13, 2022
bmalicoat pushed a commit to bmalicoat/slack-morphism-rust that referenced this pull request May 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants