# 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>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.chainbot.io/zh/basic-usage/notify-channels/discord.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
