Skip to main content
webhooks.discord() verifies the Ed25519 signature Discord sends in x-signature-ed25519 on every request.
/trigger/discord.ts
To run a subscriber only for some events, add a filter on event.event.type.

Set up Discord

  1. Start trigger dev or deploy, then copy the endpoint’s Webhook URL from the Webhooks page.
  2. In the Discord Developer Portal, open the application and copy the Public Key from its General Information page. Choose Set public key on the Trigger.dev endpoint and paste it.
  3. Open the application’s Webhooks page. Set the Endpoint URL to the webhook URL, turn Events on, and select the event types your subscribers need. Discord sends a PING when you save, and the endpoint can only answer it once the public key is set.
  4. Send a test event from Discord, or use the endpoint’s Test tab, and check the endpoint’s Deliveries tab. See Verify the connection if nothing arrives.

Endpoint validation

The endpoint answers Discord’s verified PING with an empty 204, so the PING creates no delivery or run.