Discord Webhooks
Receive instant notifications in your Discord channel when new records are added, dispatches are modified, admin actions occur, and more!
Last updated
Receive instant notifications in your Discord channel when new records are added, dispatches are modified, admin actions occur, and more!
Last updated
Currently, Discord webhooks can only be created using the Desktop version of Discord.
Open the "Server Settings" panel in the top right of your Discord server.
In the server settings panel, select the “Integrations” tab.
On the right, click to view all of your current Discord webhooks.
Select the "New Webhook" button.
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.
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.
As of Sonoran Bot v2, the ability to react to webhooks to create actions has been depreciated.
Footer metadata is still available to all communities.
Submit a suggestion to see this reimplemented!
Webhook footers contain metadata that can be pulled from a bot for further integration.
These follow the format: USERNAME or UUID
| TYPE
| ID
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)