mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-07-09 13:21:42 +00:00
fix(docs): discord permissions (add Create Public Threads, remove Use External Emojis)
This commit is contained in:
parent
aaeba213d9
commit
2718179134
4 changed files with 16 additions and 14 deletions
|
|
@ -263,13 +263,13 @@ Go to the [Discord Developer Portal](https://discord.com/developers/applications
|
|||
|
||||
| Level | Integer | What's Included |
|
||||
|-------|---------|----------------|
|
||||
| Text only | `274878286912` | View Channels, Send Messages, Read History, Embeds, Attachments, Threads, Reactions |
|
||||
| Text + Voice | `274881432640` | All above + Connect, Speak |
|
||||
| Text only | `309237763136` | View Channels, Send Messages, Read History, Embeds, Attachments, Threads, Reactions, Create Public Threads |
|
||||
| Text + Voice | `309240908864` | All above + Connect, Speak |
|
||||
|
||||
**Re-invite the bot** with the updated permissions URL:
|
||||
|
||||
```
|
||||
https://discord.com/oauth2/authorize?client_id=YOUR_APP_ID&scope=bot+applications.commands&permissions=274881432640
|
||||
https://discord.com/oauth2/authorize?client_id=YOUR_APP_ID&scope=bot+applications.commands&permissions=309240908864
|
||||
```
|
||||
|
||||
Replace `YOUR_APP_ID` with your Application ID from the Developer Portal.
|
||||
|
|
|
|||
|
|
@ -114,7 +114,7 @@ This is the most critical step in the entire setup. Without the correct intents
|
|||
On the **Bot** page, scroll down to **Privileged Gateway Intents**. You'll see three toggles:
|
||||
|
||||
| Intent | Purpose | Required? |
|
||||
|--------|---------|-----------|
|
||||
|--------|---------|-----------|
|
||||
| **Presence Intent** | See user online/offline status | Optional |
|
||||
| **Server Members Intent** | Access the member list, resolve usernames | **Required** |
|
||||
| **Message Content Intent** | Read the text content of messages | **Required** |
|
||||
|
|
@ -170,7 +170,7 @@ This method requires **Public Bot** to be set to **ON** in Step 2. If you set Pu
|
|||
You can construct the invite URL directly using this format:
|
||||
|
||||
```
|
||||
https://discord.com/oauth2/authorize?client_id=YOUR_APP_ID&scope=bot+applications.commands&permissions=274878286912
|
||||
https://discord.com/oauth2/authorize?client_id=YOUR_APP_ID&scope=bot+applications.commands&permissions=309237763136
|
||||
```
|
||||
|
||||
Replace `YOUR_APP_ID` with the Application ID from Step 1.
|
||||
|
|
@ -187,6 +187,7 @@ These are the minimum permissions your bot needs:
|
|||
|
||||
### Recommended Additional Permissions
|
||||
|
||||
- **Create Public Threads** - create threads
|
||||
- **Send Messages in Threads** — respond in thread conversations
|
||||
- **Add Reactions** — react to messages for acknowledgment
|
||||
|
||||
|
|
@ -195,7 +196,7 @@ These are the minimum permissions your bot needs:
|
|||
| Level | Permissions Integer | What's Included |
|
||||
|-------|-------------------|-----------------|
|
||||
| Minimal | `117760` | View Channels, Send Messages, Read Message History, Attach Files |
|
||||
| Recommended | `274878286912` | All of the above plus Embed Links, Send Messages in Threads, Add Reactions |
|
||||
| Recommended | `309237763136` | All of the above plus Embed Links, Send Messages in Threads, Add Reactions, Create Public Threads |
|
||||
|
||||
## Step 6: Invite to Your Server
|
||||
|
||||
|
|
|
|||
|
|
@ -263,13 +263,13 @@ DISCORD_FREE_RESPONSE_CHANNELS=123456789,987654321
|
|||
|
||||
| 级别 | 整数 | 包含内容 |
|
||||
|-------|---------|----------------|
|
||||
| 仅文字 | `274878286912` | 查看频道、发送消息、读取历史、嵌入内容、附件、帖子、反应 |
|
||||
| 文字 + 语音 | `274881432640` | 以上所有 + Connect、Speak |
|
||||
| 仅文字 | `309237763136` | 查看频道、发送消息、读取历史、嵌入内容、附件、帖子、反应、创建公开帖子 |
|
||||
| 文字 + 语音 | `309240908864` | 以上所有 + Connect、Speak |
|
||||
|
||||
**使用更新后的权限 URL 重新邀请 Bot:**
|
||||
|
||||
```
|
||||
https://discord.com/oauth2/authorize?client_id=YOUR_APP_ID&scope=bot+applications.commands&permissions=274881432640
|
||||
https://discord.com/oauth2/authorize?client_id=YOUR_APP_ID&scope=bot+applications.commands&permissions=309240908864
|
||||
```
|
||||
|
||||
将 `YOUR_APP_ID` 替换为开发者门户中的应用 ID。
|
||||
|
|
@ -517,4 +517,4 @@ Bot 在服务器频道中默认需要 @提及。请确认:
|
|||
|
||||
- 在更安静的环境中使用
|
||||
- 在配置中调高 `silence_threshold`(值越高,灵敏度越低)
|
||||
- 尝试不同的 STT 模型
|
||||
- 尝试不同的 STT 模型
|
||||
|
|
|
|||
|
|
@ -114,7 +114,7 @@ Hermes 按会话键跟踪正在运行的 agent。
|
|||
在 **Bot** 页面,向下滚动到 **Privileged Gateway Intents**。你会看到三个开关:
|
||||
|
||||
| Intent | 用途 | 是否必需? |
|
||||
|--------|---------|-----------|
|
||||
|--------|---------|-----------|
|
||||
| **Presence Intent** | 查看用户在线/离线状态 | 可选 |
|
||||
| **Server Members Intent** | 访问成员列表、解析用户名 | **必需** |
|
||||
| **Message Content Intent** | 读取消息的文本内容 | **必需** |
|
||||
|
|
@ -170,7 +170,7 @@ Token 只显示一次。如果丢失,你需要重置并生成新的 token。
|
|||
你可以使用以下格式直接构建邀请 URL:
|
||||
|
||||
```
|
||||
https://discord.com/oauth2/authorize?client_id=YOUR_APP_ID&scope=bot+applications.commands&permissions=274878286912
|
||||
https://discord.com/oauth2/authorize?client_id=YOUR_APP_ID&scope=bot+applications.commands&permissions=309237763136
|
||||
```
|
||||
|
||||
将 `YOUR_APP_ID` 替换为第一步中的 Application ID。
|
||||
|
|
@ -188,6 +188,7 @@ https://discord.com/oauth2/authorize?client_id=YOUR_APP_ID&scope=bot+application
|
|||
### 推荐的附加权限
|
||||
|
||||
- **Send Messages in Threads** — 在线程对话中响应
|
||||
- **Create Public Threads** - create threads
|
||||
- **Add Reactions** — 对消息添加反应以示确认
|
||||
|
||||
### 权限整数
|
||||
|
|
@ -195,7 +196,7 @@ https://discord.com/oauth2/authorize?client_id=YOUR_APP_ID&scope=bot+application
|
|||
| 级别 | 权限整数 | 包含内容 |
|
||||
|-------|-------------------|-----------------|
|
||||
| 最低 | `117760` | View Channels、Send Messages、Read Message History、Attach Files |
|
||||
| 推荐 | `274878286912` | 以上所有权限,加上 Embed Links、Send Messages in Threads、Add Reactions |
|
||||
| 推荐 | `309237763136` | 以上所有权限,加上 Embed Links、Send Messages in Threads、Add Reactions, Create Public Threads |
|
||||
|
||||
## 第六步:邀请到你的服务器
|
||||
|
||||
|
|
@ -796,4 +797,4 @@ DISCORD_ALLOW_MENTION_REPLIED_USER=true
|
|||
除非你确切知道为什么需要,否则将 `everyone` 和 `roles` 保持为 `false`。LLM 很容易在看似正常的响应中生成字符串 `@everyone`;没有此保护,这将通知你服务器的每个成员。
|
||||
:::
|
||||
|
||||
有关保护 Hermes Agent 部署的更多信息,请参阅[安全指南](../security.md)。
|
||||
有关保护 Hermes Agent 部署的更多信息,请参阅[安全指南](../security.md)。
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue