# Discord Webhook

<figure><img src="../.gitbook/assets/integrations/discord-webhook.png" alt="" width="563"><figcaption><p>Discord (Discord Webhook)</p></figcaption></figure>

> **Info:**
The webhook is set in config.yml and **Editor > Integrations**. The threshold is set per currency.

## Discord Webhook

Posts every balance change at or above a currency's threshold to a Discord channel as an embed, green for a gain and red for a loss, with the player, the amount, the new balance, the reason, who made it and the server. Useful to spot a duplication bug or an admin mistake early. The text of the posts is in the translation file. Copied and used banknotes caught by [Dupe Protection](../main-features/banknotes.md#dupe-protection) are posted here too.

## Webhook URL

The URL of the Discord webhook to post to, from the channel's Integrations settings in Discord.

<figure><img src="../.gitbook/assets/integrations/webhook-url.png" alt="" width="563"><figcaption><p>Discord (Webhook URL)</p></figcaption></figure>

## Posts Per Minute

The most posts sent in one minute, from 1 to 120. Extra ones are dropped, so a flood of changes cannot get the webhook blocked by Discord.

<figure><img src="../.gitbook/assets/integrations/posts-per-minute.png" alt="" width="563"><figcaption><p>Discord (Posts Per Minute)</p></figcaption></figure>

## Webhook Name

The name the posts are sent under.

<figure><img src="../.gitbook/assets/integrations/webhook-name.png" alt="" width="563"><figcaption><p>Discord (Webhook Name)</p></figcaption></figure>

## Discord Alert Threshold

Set on each currency's [Payments](../main-features/payments.md#discord-alert-threshold) screen. The smallest change of that currency that is posted. -1 posts nothing for it.

<figure><img src="../.gitbook/assets/payments/discord-alert-threshold.png" alt="" width="563"><figcaption><p>Payments (Discord Alert Threshold)</p></figcaption></figure>

Source: https://www.phoenixplugins.com/docs/phoenix-currencies/features/discord-webhook