> 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="/files/yGYTZN26oOqeYbbEM4uj" alt=""><figcaption></figcaption></figure>

### 如何在 Discord 创建 Webhook

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

   <figure><img src="/files/xPbPGe8j20TjN4nTmEqx" alt=""><figcaption><p>Create Webhook</p></figcaption></figure>

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

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

<figure><img src="/files/hMz40gRR66MGcYr0xWih" alt=""><figcaption><p>Setting Webhook</p></figcaption></figure>
