> ## Documentation Index
> Fetch the complete documentation index at: https://docs.crafter.net.tr/llms.txt
> Use this file to discover all available pages before exploring further.

# Discord Integration & Webhook Alerts

> Discord server sync, real-time event triggers, dynamic variables, and rich embed builder.

The Crafter Discord module enables automated real-time alerts for store purchases, credit top-ups, new registrations, tickets, and forum activity sent as rich embeds directly into your Discord channels.

Navigate to [Dashboard > Settings > Discord](https://app.crafter.net.tr/tr/dashboard/settings/discord) to link your server ID and configure webhook alerts.

<Frame caption="Discord Settings & Webhooks Panel">
  <img src="https://mintcdn.com/crafter/7HNbNJS4_hr17Tcv/images/1a1e8bb1-d77f-4466-bcbe-d7df911e0b5c.png?fit=max&auto=format&n=7HNbNJS4_hr17Tcv&q=85&s=42357b92d0e08e51f3d99a68b14f026d" alt="Discord Overview" width="1869" height="957" data-path="images/1a1e8bb1-d77f-4466-bcbe-d7df911e0b5c.png" />
</Frame>

***

## 1. Discord Server (Guild ID) Setup

* **Guild ID:** Right-click your Discord server icon (with Developer Mode enabled) and copy your **Server ID**, then paste and save it to enable widget synchronization.

***

## 2. Adding a Webhook Alert

<Steps>
  <Step title="Open Webhook Drawer">
    Click **+ Add Webhook** in the top right corner.
  </Step>

  <Step title="Configure Webhook Endpoint">
    * **Webhook Name:** Internal label (e.g., `Store Purchases`, `Support Tickets`).
    * **Webhook URL:** Destination URL copied from Discord channel integrations.
    * **Event:** Trigger event (e.g., `purchase_product`, `balance_load_success`, `create_ticket`).
    * **Active:** Enable toggle.
  </Step>

  <Step title="Customize Bot Avatar & Username">
    * **Bot Username:** Custom display name (e.g., `{website_name} Bot`).
    * **Avatar URL:** Image link for bot profile picture.
  </Step>
</Steps>

<Frame caption="Webhook Creator & Bot Persona">
  <img src="https://mintcdn.com/crafter/7HNbNJS4_hr17Tcv/images/f75828be-7501-4e00-adaf-05117a8d02c9.png?fit=max&auto=format&n=7HNbNJS4_hr17Tcv&q=85&s=27437811cf0748612f8e805b26916ad2" alt="Webhook Creator" width="1855" height="952" data-path="images/f75828be-7501-4e00-adaf-05117a8d02c9.png" />
</Frame>

***

## 3. Dynamic Variables (Placeholders)

Use `{variable}` placeholders inside embed titles, bodies, and footer texts:

| Placeholder            | Description                  | Example Output           |
| :--------------------- | :--------------------------- | :----------------------- |
| `{username}`           | Triggering player's username | `Steve`                  |
| `{website_name}`       | Configured website name      | `Crafter Network`        |
| `{website_url}`        | Platform URL                 | `https://yourdomain.com` |
| `{product_name}`       | Store product purchased      | `VIP+`                   |
| `{price}` / `{amount}` | Transaction value            | `15.00`                  |
| `{currency}`           | Currency symbol              | `$`, `€`, `₺`            |
| `{ticket_title}`       | Ticket subject               | `Issue with Top-up`      |
| `{ticket_id}`          | Unique ticket ID             | `CRF-9821`               |

***

## 4. Visual Embed Builder

<Frame caption="Embed Designer & Live Preview">
  <img src="https://mintcdn.com/crafter/7HNbNJS4_hr17Tcv/images/32a75c66-c16c-40cd-8d2d-9934b009dd50.png?fit=max&auto=format&n=7HNbNJS4_hr17Tcv&q=85&s=f2f598b3336c283f9c910f0dc630d5ce" alt="Embed Designer" width="1862" height="945" data-path="images/32a75c66-c16c-40cd-8d2d-9934b009dd50.png" />
</Frame>

<Tip>
  Click **Test Webhook** to dispatch a trial payload to your Discord channel and verify formatting before saving.
</Tip>
