Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save IanVaughan/8e1a42b06237bfdeffe865c0701aeb46 to your computer and use it in GitHub Desktop.
Save IanVaughan/8e1a42b06237bfdeffe865c0701aeb46 to your computer and use it in GitHub Desktop.
slack message types
{
"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