Discord
Discord uses Interactions (webhook) plus a Gateway listener when
PUBLIC_WEBHOOK_URL is set.
Setup
- Create a Discord application and bot
- Copy bot token, public key, and application ID
- Set Interactions Endpoint URL to your Greenlight webhook URL
- Invite the bot to your server
- Use the text channel ID as
target_chat_id
Register
{
"channel_id": "ops-discord",
"platform": "discord",
"target_chat_id": "123456789012345678",
"credentials": {
"bot_token": "...",
"public_key": "...",
"application_id": "..."
},
"channel_type": "PROMPT"
}Credentials
| Field | Required |
|---|---|
bot_token | Yes |
public_key | Yes |
application_id | Yes |
Webhook URL
{PUBLIC_WEBHOOK_URL}/webhooks/{organization_id}/discord/{channel_id}Set this as the Interactions Endpoint URL in the Discord developer portal.