-
Notifications
You must be signed in to change notification settings - Fork 59
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
SlackMessageEventEdited include original message's id (#226)
- Add parse test - Haven't included the `previous_message` field in the updated type defintion because I couldn't find public documentation about it, but it seems to be present in the payload for change events Closes #224
- Loading branch information
1 parent
138b9dd
commit 375f116
Showing
2 changed files
with
129 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,90 @@ | ||
{ | ||
"token": "XXXXXXXXXXXXXXXXXXXXXXXX", | ||
"team_id": "TXXXXXXXXXX", | ||
"context_team_id": "TXXXXXXXXXX", | ||
"context_enterprise_id": null, | ||
"api_app_id": "AXXXXXXXXXX", | ||
"event": { | ||
"type": "message", | ||
"subtype": "message_changed", | ||
"message": { | ||
"client_msg_id": "000000000000000000000000000000000000", | ||
"type": "message", | ||
"text": "edited message", | ||
"user": "UXXXXXXXXXX", | ||
"blocks": [ | ||
{ | ||
"type": "rich_text", | ||
"block_id": "wcwS3", | ||
"elements": [ | ||
{ | ||
"type": "rich_text_section", | ||
"elements": [ | ||
{ | ||
"type": "text", | ||
"text": "hi!" | ||
} | ||
] | ||
} | ||
] | ||
} | ||
], | ||
"team": "TXXXXXXXXXX", | ||
"edited": { | ||
"user": "UXXXXXXXXXX", | ||
"ts": "1701743154.000000" | ||
}, | ||
"ts": "1701735043.989889", | ||
"source_team": "TXXXXXXXXXX", | ||
"user_team": "TXXXXXXXXXX" | ||
}, | ||
"previous_message": { | ||
"client_msg_id": "000000000000000000000000000000000000", | ||
"type": "message", | ||
"text": "hey!", | ||
"user": "UXXXXXXXXXX", | ||
"ts": "1701735043.989889", | ||
"blocks": [ | ||
{ | ||
"type": "rich_text", | ||
"block_id": "zUXnE", | ||
"elements": [ | ||
{ | ||
"type": "rich_text_section", | ||
"elements": [ | ||
{ | ||
"type": "text", | ||
"text": "hey!" | ||
} | ||
] | ||
} | ||
] | ||
} | ||
], | ||
"team": "TXXXXXXXXXX", | ||
"edited": { | ||
"user": "UXXXXXXXXXX", | ||
"ts": "1701742890.000000" | ||
} | ||
}, | ||
"channel": "CXXXXXXXXXX", | ||
"hidden": true, | ||
"ts": "1701743154.000500", | ||
"event_ts": "1701743154.000500", | ||
"channel_type": "group" | ||
}, | ||
"type": "event_callback", | ||
"event_id": "EXXXXXXXXXXX", | ||
"event_time": 1701743154, | ||
"authorizations": [ | ||
{ | ||
"enterprise_id": null, | ||
"team_id": "TXXXXXXXXXX", | ||
"user_id": "UXXXXXXXXXX", | ||
"is_bot": true, | ||
"is_enterprise_install": false | ||
} | ||
], | ||
"is_ext_shared_channel": false, | ||
"event_context": "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters