# Integration for Discord

You can integrate Discord with IncidentHub to get notified when incidents occur.

Discord supports integrations using its webhooks feature. However, please note that you must use the "Discord" option in IncidentHub to integrate with Discord, and not "Webhook".

IncidentHub will send messages to your Discord channel when any of the following happens:

1. An incident or maintenance is triggered, updated, or resolved in any of your monitored services.
2. An upcoming maintenance reminder is triggered based on your chosen time interval.

Follow these step-by-step instructions to integrate Discord:

## In Your Discord Server

You must have the correct permissions on your Discord server to be able to do this.

* Go to Server Settings
* Click on "Integrations" under the "APPS" section in the left navigation bar
* Click on "Create Webhook" under "Webhooks"
* Discord will create a Webhook and give it a random name.
* Click on it and edit the name to something descriptive like "IncidentHub alerts"
* Choose the channel where you want the IncidentHub alerts
* Click on "Copy Webhook URL" and keep it - you will need it in the next steps
* Click on "Save Changes"

<figure><img src="/files/wQ0koVGCjiTbApP6Hdox" alt="Discord webhook configuration"><figcaption><p>Discord webhook configuration</p></figcaption></figure>

## In Your IncidentHub Account

1. Login to your IncidentHub account and click on Channels -> Add -> Discord
2. Add a Name and Description
3. Under "Discord webhook URL", paste your webhook URL that you had copied earlier.

<figure><img src="/files/ILOPWv8YSggkKBXcjmyP" alt="Add to Discord"><figcaption><p>Add to Discord popup</p></figcaption></figure>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.incidenthub.cloud/incidenthub-documentation/channels/integration-for-discord.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
