# Discord Webhooks

Some features allows you to send messages to a discord channel

{% code title="config.yml" %}

```yaml
discord_hook:
    enabled: false
    url: https://discord.com/api/webhooks/xxxxxxxx/yyyyyyyyyyyy
    avatar: https://www.spigotmc.org/data/resource_icons/123/123517.jpg?1742847968
    username: VelocityUtils
    color_rgb: 240,43,20
    title: Message title
    message: |
        📢 **Line 1**
        👤 **Line 2**
        📄 **Line 3**
        🌍 **Line 4**
```

{% endcode %}

To use this feature, enable it in the features you want

You have to create a discord webhook first. Go into a discord server, right-click on a channel > edit channel. Then, you go to the integrations section > webhooks > New webhook. It will create a new webhook, and you have to copy the webhook URL.

* Now on the plugin config, you have to paste that URL into the option "url".
* On "avatar", you can set an image for the webhook author
* You can set the "username" (the name of the webhook)
* You can set the rgb of the message on "color\_rgb". You can use [this page](https://htmlcolorcodes.com/) to select a color, and copy the rgb
* You can set the "title" of the message
* And you can customize the message! Each feature has his owns placeholders (for example {player} that are replaced)

<figure><img src="https://3022143657-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fn9QnsFBMMFPC1J3WMiUJ%2Fuploads%2FCfgBUjeS4195Jce7nar6%2Freport_discord.png?alt=media&#x26;token=f78afb82-ea85-4482-a054-9bcff2f4f909" alt=""><figcaption></figcaption></figure>
