> For the complete documentation index, see [llms.txt](https://docs.kojascripts.eu/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.kojascripts.eu/new/cardealer/configuration/logging-webhook.md).

# Logging Webhook

## Step 1

Create a webhook in your Discord channel.

{% hint style="info" %}
[How to create a webhook?](https://support.discord.com/hc/en-us/articles/228383668-Intro-to-Webhooks)
{% endhint %}

## Step 2

Open `server/webhook.lua` in `koja-lib` and set the webhook URL in `KOJA.Server.Webhooks` under the `cardealer` key.

{% code title="webhook.lua" %}

```lua
KOJA.Server.Webhooks = {
    ['cardealer'] = '' -- URL of the webhook
}
```

{% endcode %}

## Done

***

If you want different embed styling, edit the webhook payload in the same file.
