webhooks.discord() verifies the Ed25519 signature Discord sends in x-signature-ed25519 on every request.
/trigger/discord.ts
event.event.type.
Set up Discord
- Start
trigger devor deploy, then copy the endpoint’s Webhook URL from the Webhooks page. - 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.
- 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.
- 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 empty204, so the PING creates no delivery or run.
