Discord Webhooks
Receive instant notifications in your Discord channel when new records are added, dispatches are modified, admin actions occur, and more!
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. Footer Metadata
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!
Footer Metadata
Webhook footers contain metadata that can be pulled from a bot for further integration.
These follow the format: USERNAME or UUID
| TYPE
| ID
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) |
Last updated