Render raises $100M at a $1.5B valuation

Read the announcement

Webhook Discord Bot

Deploy the Webhook Discord Bot template on Render to automatically send Discord messages when your server fails.

Why deploy Webhook Discord Bot on Render?

A webhook handler that sends Discord notifications when Render platform events occur. It solves the problem of monitoring server failures by automatically posting alerts to a Discord channel when Render sends webhook notifications about service issues.

This template gives you a ready-to-run webhook listener that receives Render deployment events and posts notifications to Discord—no need to wire up Express routes, webhook signature verification, or Discord.js client configuration yourself. One click deploys the service with the correct start command and exposes the /webhook endpoint, so you're minutes away from receiving alerts instead of spending an hour on boilerplate. Just add your secrets and point a Render webhook at it.

Architecture

What you can build

After deploying, you'll have a webhook endpoint that listens for Render server failure events and posts notifications to a Discord channel of your choice. You'll still need to create a Discord app, set up the Render webhook, and configure a few environment variables to connect everything. Once configured, your team gets Discord alerts whenever a Render service goes down.

Key features

  • Render webhook integration: Receives Render platform webhooks to detect server failure events via a /webhook endpoint.
  • Discord bot messaging: Sends automated messages to a specified Discord channel using the Discord.js bot API with SendMessages permissions.
  • One-click deployment: Includes Deploy to Render button for instant provisioning without manual infrastructure setup.
  • Render API integration: Connects to Render API with configurable API key for accessing deployment and service information.
  • Webhook signature verification: Uses RENDER_WEBHOOK_SECRET environment variable to validate incoming webhook authenticity.

Use cases

  • DevOps engineer alerts team in Discord when production server crashes
  • Startup founder notifies developers instantly when Render deployments fail
  • SRE sets up automated Discord alerts for infrastructure incidents
  • Platform team routes Render webhook events to shared Discord channel

Prerequisites

  • Render Webhook Secret: The secret key used to verify that incoming webhook requests are genuinely from Render.
  • Render API Key: Your Render API key used to authenticate requests to the Render API for fetching service information.
  • Discord Bot Token: The authentication token for your Discord bot application that allows it to send messages.
  • Discord Channel ID: The ID of the Discord channel where you want the bot to send webhook notification messages.

Next steps

  1. Configure a Render webhook pointing to your service URL with the /webhook path — You should see the webhook listed in your Render Dashboard under Notifications > Webhooks with an active status
  2. Test the integration by manually failing a service or triggering a deploy failure — You should see a message appear in your configured Discord channel within a few seconds describing the server failure event
  3. Open your Discord channel and verify the bot has joined — You should see the bot listed in the channel's member list with online status and correct permissions to send messages

Resources

Stack

node.js

Tags

discord
api
webhooks
alerting