Slack formatting too. Just append /slack
to webhook url to start using it.
Discord | Slack | Comment |
---|
username | username | |
avatar_url | icon_url | |
content | text | |
embeds | attachments | |
Discord | Slack | Comment |
---|
color | color | supports hex codes "#4c73c7" and has three predefined colors: good (green), warning (yellow) and danger (red). |
author | - | author block declares in different way. See the author table. |
title | title | |
url | title_link | |
description | text | |
fields | fields | |
image | - | image block declares in different way. See the image table. |
thumbnail | - | thumbnail block declares in different way. See the thumbnail table. |
footer | footer | not a block. See the footer table |
timestamp | ts | requires unix timestamp format. |
- | fallback | embed summary for notifications. Not sure if Discord supports that. |
- | pretext | kinda broken atm. Should works as "content" before embed, but it just appends to "description". |
Discord | Slack | Comment |
---|
name | author_name | just write them inside of attachments like color or etc. |
url | author_link | |
icon_url | author_icon | |
Discord | Slack | Comment |
---|
name | title | |
value | value | |
inline | short | |
Discord | Slack | Comment |
---|
url | image_url | no image block. Just write them inside of attachments like color or etc. |
Discord | Slack | Comment |
---|
url | thumb_url | no thumbnail block. Just write them inside of attachments like color or etc. |
Discord | Slack | Comment |
---|
text | footer | no footer block. Just write them inside of attachments like color or etc. |
icon | footer_icon | |
Slack formatted example from here:
{
"username": "Webhook",
"icon_url": "https://i.imgur.com/4M34hi2.png",
"text": "Text message. Up to 2000 characters.",
"attachments": [
{
"author_name": "Birdieā«",
"author_link": "https://www.reddit.com/r/cats/",
"author_icon": "https://i.imgur.com/R66g1Pe.jpg",
"title": "Title",
"title_link": "https://google.com/",
"text": "Text message. You can use Markdown here. *Italic* **bold** __underline__ ~~strikeout~~ [hyperlink](https://google.com) `code`",
"color": "#e8d44f",
"fields": [
{
"title": "Text",
"value": "More text",
"short": true
},
{
"title": "Even more text",
"value": "Yup",
"short": true
},
{
"title": "Use `\"inline\": true` parameter, if you want to display fields in the same line.",
"value": "okay..."
},
{
"title": "Thanks!",
"value": "You're welcome :wink:"
}
],
"thumb_url": "https://upload.wikimedia.org/wikipedia/commons/3/38/4-Nature-Wallpapers-2014-1_ukaavUI.jpg",
"image_url": "https://upload.wikimedia.org/wikipedia/commons/5/5a/A_picture_from_China_every_day_108.jpg",
"footer": "Woah! So cool! :smirk:",
"footer_icon": "https://i.imgur.com/fKL31aD.jpg"
}
]
}