> For the complete documentation index, see [llms.txt](https://docs.chainbot.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.chainbot.io/zh/basic-usage/notify-channels/discord.md).

# Discord

### 如何设置 Discord？

当给 Discord 服务推送消息时，需要用户在指定 Discord 服务器中创建新的 Webhook 连接。配置流程如下：

1. 在指定的 Discord 服务器上创建一个 Webhook 链接。（如果没有 Discord 服务器，请创建一个。）
2. 复制 Webhook 链接至 ChainBot 平台，并填写该 Webhook 的名称。

<figure><img src="https://269759277-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FmoG8PqN7GJCejgjqG74o%2Fuploads%2F3rjIUYj75IDreep70t4U%2Fdiscord-0.png?alt=media&amp;token=c674d4d4-8222-4ef2-98c9-33d8c68656c5" alt=""><figcaption></figcaption></figure>

### 如何在 Discord 创建 Webhook

1. 打开 Discord 中指定服务器的 “服务器设置” -> APP -> “整合”。
2. 点击 “新 Webhook”。

   <figure><img src="https://content.gitbook.com/content/moG8PqN7GJCejgjqG74o/blobs/DagNqYaa8wWxx47fBEIv/image.png" alt=""><figcaption><p>Create Webhook</p></figcaption></figure>

为了区分不同告警的类型，用户可以设置 Webhook 的以下内容：

1. 设置头像
2. 设置接收消息的 Webhook 昵称
3. 设置消息推送至 Discord 中的指定 Channel

<figure><img src="https://content.gitbook.com/content/moG8PqN7GJCejgjqG74o/blobs/iDwvwMvxwydmMJw7I3qv/image.png" alt=""><figcaption><p>Setting Webhook</p></figcaption></figure>
