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 blocks in slackevents.MessageEvent #1227

Merged
merged 1 commit into from Jan 30, 2024
Merged

Conversation

invzhi
Copy link
Contributor

@invzhi invzhi commented Sep 20, 2023

Now message event received by events API will contain blocks.

This is a example. So I add the blocks in slackevents.MessageEvent.

{
    "client_msg_id": "xxxxxxxxxxxxxxxxxxxxxxxxxxxx",
    "type": "message",
    "text": "tt",
    "user": "Uxxxxxxxxx",
    "ts": "1692759855.085859",
    "blocks": [
        {
            "type": "rich_text",
            "block_id": "S7Cm",
            "elements": [
                {
                    "type": "rich_text_section",
                    "elements": [
                        {
                            "type": "text",
                            "text": "tt"
                        }
                    ]
                }
            ]
        }
    ],
    "team": "Txxxxxxxxx",
    "channel": "Cxxxxxxxxxxx",
    "event_ts": "1692759855.085859",
    "channel_type": "channel"
}

@vryazanov
Copy link

@parsley42 could you please review this?

@parsley42 parsley42 closed this Jan 30, 2024
@parsley42 parsley42 reopened this Jan 30, 2024
Copy link
Member

@parsley42 parsley42 left a comment

Choose a reason for hiding this comment

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

Harmless.

@parsley42 parsley42 merged commit 86cd1bd into slack-go:master Jan 30, 2024
4 checks passed
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.

None yet

3 participants