DEV Community

Cover image for Guide: Netlify-to-Discord notifications
Rico Sta. Cruz
Rico Sta. Cruz

Posted on

7 3

Guide: Netlify-to-Discord notifications

Discord is a great way to get Netlify notifications! I set up my own private server to collect notifications with my open source projects.

There’s an official guide to set up GitHub notifications on Discord, but I like using it too for other things like monitoring Netlify deployments. Here's how I got it set up.

Screenshot: Discord notifications


Solution: webhooks

Discord supports any Slack-compatible webhook. I used this to set up send Netlify notifications to Discord using Slack’s webhook format.

Step 1: Create a webhook in Discord

In Discord’s channel settings, go to “Integrations” and select “Create Webhook”. In the next screen, use “Copy Webhook URL” to copy the URL.

Screenshot: integrations settings on Discord

Screenshot: creating a webhook

Step 2: Site settings in Netlify

Under Netlify’s “Site settings”, go to “Build & deploy” → “Deploy notifications”.

Screenshot: Netlify site settings

Step 3: Add a notification

Under the “Outgoing notifications” section, click the “Add notification” button.

Screenshot: adding notifications

Step 4: Choose Slack integration

In the dropdown, select “Slack integration.” (Yes, select “Slack” even if it’s Discord!)

Screenshot: the “add notification” dropdown

Step 5: Add the URL

Paste the webhook URL and add /slack to the end. Don’t forget to change the “Event to listen for” dropdown.

Screenshot: creating a new Slack integration

All done!

New notifications should now show up on Discord.

Screenshot: Discord notifications

Heroku

This site is built on Heroku

Join the ranks of developers at Salesforce, Airbase, DEV, and more who deploy their mission critical applications on Heroku. Sign up today and launch your first app!

Get Started

Top comments (1)

Collapse
 
cschaffner profile image
Christian Schaffner

That does not work anymore, as netlify has changed the slack notification interface... ;-(

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay