> For the complete documentation index, see [llms.txt](https://docs.convai.com/api-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.convai.com/api-docs/zh/cha-jian-yu-ji-cheng/other-integrations/discord.md).

# Discord

### 概述

在本文档中，我们列出了创建您自己的 Discord 机器人并将其与 Convai 角色连接，以及为该机器人托管服务器以便 Discord 用户可以访问它所需的步骤。

{% hint style="info" %}
欢迎加入我们的 [Discord 服务器](https://discord.gg/TG98s8FWKN) 并成为富有创新精神和热情的开发者们的一员，同时构建您自己的 Convai 角色。
{% endhint %}

### 让我们来创建一个角色

在我们继续托管 Discord 机器人服务器之前，先让我们创建自己的角色，以便将机器人连接到该角色。请按照该页面中的步骤操作，以便轻松开始创建一个简单的角色。

{% content-ref url="/pages/35a85ab8078743525dfb21372f6c08398990e426" %}
[Broken mention](broken://pages/35a85ab8078743525dfb21372f6c08398990e426)
{% endcontent-ref %}

现在我们已经有了一个角色，接下来让我们进入下一步

{% content-ref url="/pages/4962146a2711a90f7d66bd1793102e867c6a7580" %}
[创建 Discord Bot](/api-docs/zh/cha-jian-yu-ji-cheng/other-integrations/discord/create-a-discord-bot.md)
{% endcontent-ref %}

{% hint style="warning" %}
Convai 正在为您寻找托管服务器机器人的解决方案，这样您就不必按照上述步骤进行自托管。我们会在有了解决方案后尽快更新文档。
{% endhint %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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.convai.com/api-docs/zh/cha-jian-yu-ji-cheng/other-integrations/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.
