Discord notifications
Send Kosken events to a Discord channel through a webhook, and read what the messages contain.
On this page
After you read this guide, you can send Kosken events to a Discord channel.
Create a webhook in Discord
You need the right to manage webhooks on the Discord server.
- In Discord, open the settings of the channel.
- Open Integrations, then Webhooks.
- Make a new webhook and copy its URL. The address starts with
https://discord.com/api/webhooks/.
Connect the channel in Kosken
Only an owner of the workspace can connect a channel.
- In the sidebar, select Channels.
- Under Add a channel, on Discord, select Connect.
- In Name, write a name for the channel, for example
Discord ops. Each channel of the workspace needs its own name. - In Discord webhook address, paste the URL of the webhook.
- Select Connect.
- In Connected channels, select Send test on the new row. The message Test message from Kosken shows in Discord.
Kosken accepts only a webhook address of Discord. It stores the address sealed and does not show it again. To use another webhook, delete the channel and connect it again.
Send events to Discord
A channel gets nothing until a rule sends events to it.
- On the Channels page, go to Rules.
- Choose the Event and the lowest Severity.
- In Channel, choose the Discord channel.
- Select Add rule.
See Send an event to a channel or to members.
What a message contains
Each message comes from Kosken as one embed:
- The title, for example INC-12 opened on web-01. The title links to the page in Kosken.
- The text of the event.
- Quoted data, such as the title of the incident or the cause, in code blocks.
A message never mentions people: Kosken turns off @everyone, @here and other mentions. The messages are in English. A Discord message has no approve or reject buttons. To decide an approval, open it in Kosken. See Approvals.
When the channel shows Broken
When Discord answers that the webhook does not exist or refuses it, the channel shows Broken and Kosken stops sending to it. This happens, for example, when someone deletes the webhook in Discord. Make a new webhook, select Delete on the broken row, and connect the channel again.
Something here does not match the app? Tell us