# Discord Webhooks Setup

Discord Webhooks provide a simple way to integrate notifications for each copy trade to your community. These notifications can help ensure subscribers stay up to date with their accounts and can report or fix any issues as they occur. Automating your alerts with Webhooks can save group leaders ample amounts of time by not dealing with micro-management of their infrastructure.

## Creating A Discord Webhook

You can create a Discord webhook using either the graphical user interface (GUI) or the Discord API. The most straightforward way to add a webhook to your Discord account is through the user interface. It is the recommended option if you plan to manage your Discord webhooks in automated workflows.

<figure><img src="https://1651117496-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FEGga6hitYf1rFnzhpwBm%2Fuploads%2FS4eIl5Cfcx6T61XCXNAc%2Fimage.png?alt=media&#x26;token=f4462eb9-93ad-4ca0-a4eb-7c9a2e8ac540" alt=""><figcaption><p>A preview of the Discord create Webhook panel found in the Integrations page of your Discord server.</p></figcaption></figure>

To add a webhook to your server:

* Navigate to the Integrations page on your Discord server
* Click on Create Webhook
* Give your webhook an appropriate name
* Choose the destination channel
* Save the changes made to your webhook configuration.

{% hint style="info" %}
Make sure not to share your Webhook URL for security reasons.
{% endhint %}

## Webhook ID And Token

The Discord Webhook created in the previous step can be dissected into three different sections. Understanding these different sections is necessary for connecting the Webhook to your Copy Trading Group in order to receive notifications.

### Example Of Discord Webhook

{% code overflow="wrap" %}

```
https://discord.com/api/webhooks/1076532801734452871/OTAFbsHZT-33XzMlb0eCZnkt7bXKGqHU3EdeVaPCji-UvoDyK_j9ve0HjxQDCltaTREC
```

{% endcode %}

### Dissected Discord Webhook

{% code overflow="wrap" %}

```
https://discord.com/api/webhooks/[WEBHOOK ID]/[WEBHOOK TOKEN]
```

{% endcode %}

In this example, the following would be true:

* Webhook ID: 1076532801734452871
* Webhook Token: OTAFbsHZT-33XzMlb0eCZnkt7bXKGqHU3EdeVaPCji-UvoDyK\_j9ve0HjxQDCltaTREC

## Set Webhook For Group

Visit the group management panel for your designated Copy Trading Group. Scroll down to the "Discord Webhook" section and press the down arrow to display the full component.

<figure><img src="https://1651117496-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FEGga6hitYf1rFnzhpwBm%2Fuploads%2FDYSmzuCbI8tepeqar8t7%2Fimage.png?alt=media&#x26;token=67a4cfed-11b4-4dd1-a368-4eda4a02dcb0" alt=""><figcaption></figcaption></figure>

Using what we've learned in the previous section, enter the correct Discord Webhook ID and Webhook Token in the appropriate input fields. After entering the correct information press "Save Webhook Information" and a test webhook entry will be sent to your designated Webhook URL.

In order to clear any information or deactivate the Webhook, just simply save empty input fields for both inputs.

## Example Webhook Info

The following image shows an example of what a group leader can expect from Webhook integrations.

<figure><img src="https://1651117496-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FEGga6hitYf1rFnzhpwBm%2Fuploads%2FPg93Dx7idfzHqJoaOA7l%2Fimage.png?alt=media&#x26;token=34c8489f-07e2-4f41-8c15-e75b677a8ed5" alt=""><figcaption><p>A Preview of a Discord Webhook Example forwarded from the Compendium Application.</p></figcaption></figure>

We highly recommend saving a custom Group Icon in your management panel to avoid any complications with empty data fields while using the Webhook.
