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

Edited field in the app mention event #1256

Merged

Conversation

IbirbyZh
Copy link
Contributor

@IbirbyZh IbirbyZh commented Feb 1, 2024

This commit add edited field to the app mention event

Sometimes it is important to react on the mention only once. The field helps to distinguish whether the message is original or edited

#961

Example:

{
    "envelope_id": "********",
    "payload": {
        "token": "********",
        "team_id": "T********",
        "api_app_id": "A********",
        "event": {
            "client_msg_id": "********",
            "type": "app_mention",
            "text": "********",
            "user": "U********",
            "ts": "1706785424.099119",
            "blocks": [
                {
                    "type": "rich_text",
                    "block_id": "7Kvco",
                    "elements": [
                        {
                            "type": "rich_text_section",
                            "elements": [
                                {
                                    "type": "text",
                                    "text": "text"
                                }
                            ]
                        }
                    ]
                }
            ],
            "team": "T********",
            "edited": {
                "user": "U********",
                "ts": "1706785427.000000"
            },
            "thread_ts": "1706785424.099119",
            "reply_count": 1,
            "reply_users_count": 1,
            "latest_reply": "1706785424.915589",
            "reply_users": [
                "U********"
            ],
            "is_locked": false,
            "subscribed": false,
            "channel": "C********",
            "event_ts": "1706785424.099119"
        },
        "type": "event_callback",
        "event_id": "********",
        "event_time": 1706785424,
        "authorizations": [
            {
                "enterprise_id": null,
                "team_id": "T********",
                "user_id": "U********",
                "is_bot": true,
                "is_enterprise_install": false
            }
        ],
        "is_ext_shared_channel": false,
        "event_context": "********"
    },
    "type": "events_api",
    "accepts_response_payload": false,
    "retry_attempt": 0,
    "retry_reason": ""
}

@IbirbyZh
Copy link
Contributor Author

IbirbyZh commented Feb 1, 2024

Hi, @parsley42, could I get this pr reviewed please?

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.

Trivial

@parsley42 parsley42 merged commit 687e2d3 into slack-go:master Feb 10, 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

2 participants