Created
July 17, 2020 09:02
-
-
Save IanVaughan/8e1a42b06237bfdeffe865c0701aeb46 to your computer and use it in GitHub Desktop.
slack message types
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
{ | |
"blocks": [ | |
{ | |
"type": "section", | |
"text": { | |
"type": "mrkdwn", | |
"text": "<http://www.foo.com|This message *is* a link>" | |
} | |
} | |
] | |
} | |
{ | |
"attachments": [ | |
{ | |
"color": "#f2c744", | |
"blocks": [ | |
{ | |
"type": "section", | |
"text": { | |
"text": "Invoice submitted", | |
"type": "mrkdwn" | |
}, | |
"fields": [ | |
{ | |
"type": "mrkdwn", | |
"text": "*Amount*" | |
}, | |
{ | |
"type": "mrkdwn", | |
"text": "*To*" | |
}, | |
{ | |
"type": "plain_text", | |
"text": "£450.00" | |
}, | |
{ | |
"type": "plain_text", | |
"text": "GoogleAds" | |
} | |
] | |
} | |
] | |
} | |
] | |
} | |
{ | |
"attachments": [ | |
{ | |
"blocks": [ | |
{ | |
"type": "section", | |
"text": { | |
"text": "Invoice submitted\n<google.com|Company No1 - Invoice 1>", | |
"type": "mrkdwn" | |
}, | |
"fields": [ | |
{ | |
"type": "mrkdwn", | |
"text": "*Amount*" | |
}, | |
{ | |
"type": "mrkdwn", | |
"text": "*To*" | |
}, | |
{ | |
"type": "plain_text", | |
"text": "£450.00" | |
}, | |
{ | |
"type": "plain_text", | |
"text": "GoogleAds" | |
} | |
] | |
}, | |
{ | |
"type": "actions", | |
"elements": [ | |
{ | |
"type": "button", | |
"text": { | |
"type": "plain_text", | |
"emoji": true, | |
"text": "Approve" | |
}, | |
"style": "primary", | |
"value": "click_me_123" | |
}, | |
{ | |
"type": "button", | |
"text": { | |
"type": "plain_text", | |
"emoji": true, | |
"text": "Deny" | |
}, | |
"style": "danger", | |
"value": "click_me_123" | |
} | |
] | |
} | |
] | |
} | |
] | |
} | |
{ | |
"attachments": [ | |
{ | |
"blocks": [ | |
{ | |
"type": "section", | |
"text": { | |
"text": "Invoice submitted\n<google.com|Company No1 - Invoice 1>", | |
"type": "mrkdwn" | |
}, | |
"fields": [ | |
{ | |
"type": "mrkdwn", | |
"text": "*Amount*" | |
}, | |
{ | |
"type": "mrkdwn", | |
"text": "*To*" | |
}, | |
{ | |
"type": "plain_text", | |
"text": "£450.00" | |
}, | |
{ | |
"type": "plain_text", | |
"text": "GoogleAds" | |
} | |
] | |
} | |
] | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment