Slack formatting

Discord webhooks support Slack formatting too. Just append /slack to webhook url to start using it.

First layer

DiscordSlackComment
usernameusername
avatar_urlicon_url
contenttext
embedsattachments

embeds (attachments)

DiscordSlackComment
colorcolorsupports 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.
titletitle
urltitle_link
descriptiontext
fieldsfields
image-image block declares in different way. See the image table.
thumbnail-thumbnail block declares in different way. See the thumbnail table.
footerfooternot a block. See the footer table
timestamptsrequires unix timestamp format.
-fallbackembed summary for notifications. Not sure if Discord supports that.
-pretextkinda broken atm. Should works as "content" before embed, but it just appends to "description".

author

DiscordSlackComment
nameauthor_namejust write them inside of attachments like color or etc.
urlauthor_link
icon_urlauthor_icon

fields

DiscordSlackComment
nametitle
valuevalue
inlineshort

image

DiscordSlackComment
urlimage_urlno image block. Just write them inside of attachments like color or etc.

thumbnail

DiscordSlackComment
urlthumb_urlno thumbnail block. Just write them inside of attachments like color or etc.
DiscordSlackComment
textfooterno footer block. Just write them inside of attachments like color or etc.
iconfooter_icon

Example

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"
    }
  ]
}

Additional info: