Set up webhooks sent to Discord notifying deploy events on Netlify

Moving from Slack to Discord is a huge pleasure. Sure it lack some functionalities that Slack has to offer, but Discord clients are super fast and smooth and comes with voice chat. At the end of the day, performance is what matters the most.

One of the problem I had to deal with is moving the Netlify notifications from Slack to Discord. Here in this post, I will talk about the process of me figuring it out. However, if you are just looking for a solution just like I was, jump forward to TLDR;.

What I thought

At first, I thought that I only need to create a incoming webhook on Discord to get a webhook url.

Afterward, create a outgoing webhook on Netlify.

Copy the webhook url from Discord and paste into Netlify.

You know what? It doesn’t work!

What’s wrong?

The problem is that the JSON format sent from Netlify isn’t compatible with Discord. After searching around, I found this part inside Discord Developer Documentation.

TLDR;

In Netlify, create a Slack intergration webhook (yeah, Slack), paste your Discord webhook url and append /slack

Have fun :)

netcell

Mobile game Production lead for 2+ years and Software engineer for 8+ years. Producing cross-platform games, apps and wedsites. Dog lover.