> For the complete documentation index, see [llms.txt](https://acestudios.gitbook.io/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://acestudios.gitbook.io/docs/guides/discord-webhooks.md).

# Discord Webhook Logging

Where to set Discord webhooks for each AceStudios resource.

Six resources can send logs to Discord.

{% hint style="warning" %}
**Keep webhooks private.** Post logs to a staff-only channel. Files loaded as `shared_scripts` (such as most `config.lua` files) are also sent to players' game clients, so anyone determined could read a webhook URL stored there. Where a resource supports server-only convars, use them.
{% endhint %}

| Resource                                                                                                   | Where                                                    | Options                                                                                                          |
| ---------------------------------------------------------------------------------------------------------- | -------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- |
| [P2P Vehicle Marketplace](/docs/jobs-and-economy/p2p-vehicle-marketplace/configuration.md#discord-logging) | `server.cfg` convar                                      | `set ace_marketplace_discord_webhook "…"`, plus `Config.Discord.Events` toggles                                  |
| [Compensation Stashes](/docs/inventory-and-items/compensation-stashes/configuration.md#discord-logs)       | `Config.lua` → `DiscordLogs`                             | A separate webhook per action, and `logActions`                                                                  |
| [Date Farming & Packaging Job](/docs/jobs-and-economy/date-farming-job/configuration.md#webhook)           | `config.lua` → `Config.Webhook`                          | `Enabled`, `Url`, `BotName`, `Color`                                                                             |
| [Advanced Knockout](/docs/roleplay/advanced-knockout/configuration.md#webhooks)                            | `config.lua` → `Config.Webhooks`                         | `Enabled`, `URL`, `Color`                                                                                        |
| [Serial Scratcher](/docs/inventory-and-items/serial-scratcher/configuration.md#settings)                   | `Config.lua` → `Config.Settings`                         | `LogActions`, `webhookURL`                                                                                       |
| [Live Radio](/docs/roleplay/live-radio/configuration.md#server-only-secrets)                               | `server_config.lua` (server-only) or `server.cfg` convar | `ServerConfig.DiscordWebhook` or `set ace_liveradio_discord_webhook "…"`, plus `Config.DiscordLog` event toggles |

## Creating a webhook

1. In Discord, open **Channel Settings → Integrations → Webhooks**.
2. Click **New Webhook**, pick the channel, and **Copy Webhook URL**.
3. Paste it into the option listed above and restart the resource.

{% hint style="danger" %}
If a webhook URL leaks, delete it in Discord and create a new one. Anyone with the URL can post to your channel.
{% endhint %}
