Links
Comment on page

Discord Webhooks

Receive instant notifications in your Discord channel when new records are added, dispatches are modified, admin actions occur, and more!
The free version of Sonoran CAD is limited to one (1) Discord webhook. For more information, see our pricing or view how to check your community limits.
Currently, Discord webhooks can only be created using the Desktop version of Discord.

1. Open your Server Settings

Open the "Server Settings" panel in the top right of your Discord server.

2. Open your Discord Integrations

In the server settings panel, select the “Integrations” tab.

3. View your Webhooks

On the right, click to view all of your current Discord webhooks.

4. Create a New Webhook URL

Select the "New Webhook" button.

5. Customize the New Webhook

Here, you can set the Webhook name, channel and icon.
Press the "Copy Webhook URL" button to copy the webhook's URL. Press the "Save Changes" button to save your new webhook in Discord.

6. Configure the Sonoran CAD Webhook

New webhooks are created as "discord.com". If you are having problems please change the URLs of the old webhooks from "discordapp.com" to "discord.com" so they will function.
In the Sonoran CAD Admin panel, select “Advanced > Discord Integration” Paste your Webhook URL in the desired webhook configuration box. Toggle the desired notification events for the specific webhook. Press the “Save Configuration” button.
Note: Some webhooks allow you to customize the notification settings even further. For example, you can specify to only receive a webhook when a police record is added, edited or removed.

7. Integrate Reactions with Sonoran Bot

Our official Discord bot allows you to react to webhooks like a dispatch call notification to attach, or a record notification to view it in your CAD.
Webhook footers contain metadata that can be pulled from a bot for further integration. These follow the format: USERNAME or UUID | TYPE | ID
Sonoran CAD - Webhook Footer Data
Type
ID Value
0: UNIT_PANIC
Identifier ID
1: TEN_CODES
2: PENAL_CODES
3: SIGNAL
Signal Value
4: ACCOUNT
5: NEW_DISPATCH
Call ID | Server ID
6: EDIT_DISPATCH
Call ID | Server ID
7: CLOSE_DISPATCH
Call ID
8: EMERGENCY
Call ID | Server ID
9: RECORD_ADD
Record ID
10: RECORD_EDIT
Record ID
11: RECORD_REMOVE
Record ID
12: TONE_PLAYED
Tone Label
999: SYSTEM
Systemwide Broadcast (From Sonoran)