惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

J
Java Code Geeks
G
Google Developers Blog
Blog — PlanetScale
Blog — PlanetScale
U
Unit 42
A
About on SuperTechFans
Vercel News
Vercel News
B
Blog
Martin Fowler
Martin Fowler
MyScale Blog
MyScale Blog
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
腾讯CDC
D
Docker
V
Visual Studio Blog
博客园 - 叶小钗
The Cloudflare Blog
Jina AI
Jina AI
B
Blog RSS Feed
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
WordPress大学
WordPress大学
T
Tailwind CSS Blog
MongoDB | Blog
MongoDB | Blog
D
DataBreaches.Net
月光博客
月光博客
大猫的无限游戏
大猫的无限游戏

Recent Commits to openclaw:main

test: merge chat side-result checks · openclaw/openclaw@ddd2c2a test: merge cron history checks · openclaw/openclaw@f7eb746 test: merge responsive navigation shell checks · openclaw/openclaw@c2e4b47 docs(changelog): add codex oauth fixes · openclaw/openclaw@628e6cd test: merge navigation routing cases · openclaw/openclaw@5d8cecb Tests: mock channel registry bundled fallback · openclaw/openclaw@2b08233 Secrets: avoid broad web search discovery for single plugin config · openclaw/openclaw@a464f59 test: merge config view browser checks · openclaw/openclaw@20cf511 fix(status): align oauth health with runtime · openclaw/openclaw@eed7116 feat: add macOS screen snapshots for monitor preview (#67954) thanks … · openclaw/openclaw@f377db1 fix: report shared auth scopes in hello-ok (#67810) thanks @BunsDev · openclaw/openclaw@0b6c39b Auto-reply: avoid eager bundled route fallback · openclaw/openclaw@3ea1bf4 Tests: narrow session binding contract setup · openclaw/openclaw@54e4e16 fix(macOS): enable undo/redo in webchat composer text input (#34962) · openclaw/openclaw@00951dc Tests: speed up channel setup promotion · openclaw/openclaw@82b529a Docs: refresh agent instructions · openclaw/openclaw@5775fe2 fix(auth): serialize OAuth refresh across agents to fix #26322 (#67876) · openclaw/openclaw@8e79080 test: allow ollama public surface boundary test · openclaw/openclaw@7d4f1a6 Docs: add test performance guardrails · openclaw/openclaw@89706d3 Tests: restore context-engine usage proof · openclaw/openclaw@e4c4f95 Tests: slim context engine runtime coverage · openclaw/openclaw@74c198f ci: retry failed custom checkouts · openclaw/openclaw@0ee5baf test: trim duplicate provider auth onboarding cases · openclaw/openclaw@1ffc02e matrix: fix sessions_spawn --thread subagent session spawning (#67643) · openclaw/openclaw@1ce2596 test: reduce auth choice fixture churn · openclaw/openclaw@857b9cd test: mock health status config boundaries · openclaw/openclaw@9d5ab4a test: mock onboard config io boundary · openclaw/openclaw@299694d test: mock legacy state plugin boundaries · openclaw/openclaw@2713089 test: mock channel install boundaries · openclaw/openclaw@b945248 test: mock doctor preview channel boundaries · openclaw/openclaw@b1a3ad4
docs(channels): discord - drop duplicate developer-portal...
vincentkoc · 2026-04-24 · via Recent Commits to openclaw:main

@@ -5,9 +5,7 @@ read_when:

55

title: "Discord"

66

---

778-

# Discord (Bot API)

9-10-

Status: ready for DMs and guild channels via the official Discord gateway.

8+

Ready for DMs and guild channels via the official Discord gateway.

1191210

<CardGroup cols={3}>

1311

<Card title="Pairing" icon="link" href="/channels/pairing">

@@ -495,60 +493,6 @@ Use `bindings[].match.roles` to route Discord guild members to different agents

495493

}

496494

```

497495498-

## Developer Portal setup

499-500-

<AccordionGroup>

501-

<Accordion title="Create app and bot">

502-503-

1. Discord Developer Portal -> **Applications** -> **New Application**

504-

2. **Bot** -> **Add Bot**

505-

3. Copy bot token

506-507-

</Accordion>

508-509-

<Accordion title="Privileged intents">

510-

In **Bot -> Privileged Gateway Intents**, enable:

511-512-

- Message Content Intent

513-

- Server Members Intent (recommended)

514-515-

Presence intent is optional and only required if you want to receive presence updates. Setting bot presence (`setPresence`) does not require enabling presence updates for members.

516-517-

</Accordion>

518-519-

<Accordion title="OAuth scopes and baseline permissions">

520-

OAuth URL generator:

521-522-

- scopes: `bot`, `applications.commands`

523-524-

Typical baseline permissions:

525-526-

**General Permissions**

527-

- View Channels

528-

**Text Permissions**

529-

- Send Messages

530-

- Read Message History

531-

- Embed Links

532-

- Attach Files

533-

- Add Reactions (optional)

534-535-

This is the baseline set for normal text channels. If you plan to post in Discord threads, including forum or media channel workflows that create or continue a thread, also enable **Send Messages in Threads**.

536-

Avoid `Administrator` unless explicitly needed.

537-538-

</Accordion>

539-540-

<Accordion title="Copy IDs">

541-

Enable Discord Developer Mode, then copy:

542-543-

- server ID

544-

- channel ID

545-

- user ID

546-547-

Prefer numeric IDs in OpenClaw config for reliable audits and probes.

548-549-

</Accordion>

550-

</AccordionGroup>

551-552496

## Native commands and command auth

553497554498

- `commands.native` defaults to `"auto"` and is enabled for Discord.

@@ -1188,13 +1132,11 @@ openclaw logs --follow

11881132

</Accordion>

11891133

</AccordionGroup>

119011341191-

## Configuration reference pointers

1135+

## Configuration reference

119211361193-

Primary reference:

1137+

Primary reference: [Configuration reference - Discord](/gateway/configuration-reference#discord).

119411381195-

- [Configuration reference - Discord](/gateway/configuration-reference#discord)

1196-1197-

High-signal Discord fields:

1139+

<Accordion title="High-signal Discord fields">

1198114011991141

- startup/auth: `enabled`, `token`, `accounts.*`, `allowBots`

12001142

- policy: `groupPolicy`, `dm.*`, `guilds.*`, `guilds.*.channels.*`

@@ -1204,13 +1146,14 @@ High-signal Discord fields:

12041146

- reply/history: `replyToMode`, `historyLimit`, `dmHistoryLimit`, `dms.*.historyLimit`

12051147

- delivery: `textChunkLimit`, `chunkMode`, `maxLinesPerMessage`

12061148

- streaming: `streaming` (legacy alias: `streamMode`), `streaming.preview.toolProgress`, `draftChunk`, `blockStreaming`, `blockStreamingCoalesce`

1207-

- media/retry: `mediaMaxMb`, `retry`

1208-

- `mediaMaxMb` caps outbound Discord uploads (default: `100MB`)

1149+

- media/retry: `mediaMaxMb` (caps outbound Discord uploads, default `100MB`), `retry`

12091150

- actions: `actions.*`

12101151

- presence: `activity`, `status`, `activityType`, `activityUrl`

12111152

- UI: `ui.components.accentColor`

12121153

- features: `threadBindings`, top-level `bindings[]` (`type: "acp"`), `pluralkit`, `execApprovals`, `intents`, `agentComponents`, `heartbeat`, `responsePrefix`

121311541155+

</Accordion>

1156+12141157

## Safety and operations

1215115812161159

- Treat bot tokens as secrets (`DISCORD_BOT_TOKEN` preferred in supervised environments).

@@ -1219,10 +1162,23 @@ High-signal Discord fields:

1219116212201163

## Related

122111641222-

- [Pairing](/channels/pairing)

1223-

- [Groups](/channels/groups)

1224-

- [Channel routing](/channels/channel-routing)

1225-

- [Security](/gateway/security)

1226-

- [Multi-agent routing](/concepts/multi-agent)

1227-

- [Troubleshooting](/channels/troubleshooting)

1228-

- [Slash commands](/tools/slash-commands)

1165+

<CardGroup cols={2}>

1166+

<Card title="Pairing" icon="link" href="/channels/pairing">

1167+

Pair a Discord user to the gateway.

1168+

</Card>

1169+

<Card title="Groups" icon="users" href="/channels/groups">

1170+

Group chat and allowlist behavior.

1171+

</Card>

1172+

<Card title="Channel routing" icon="route" href="/channels/channel-routing">

1173+

Route inbound messages to agents.

1174+

</Card>

1175+

<Card title="Security" icon="shield" href="/gateway/security">

1176+

Threat model and hardening.

1177+

</Card>

1178+

<Card title="Multi-agent routing" icon="sitemap" href="/concepts/multi-agent">

1179+

Map guilds and channels to agents.

1180+

</Card>

1181+

<Card title="Slash commands" icon="terminal" href="/tools/slash-commands">

1182+

Native command behavior.

1183+

</Card>

1184+

</CardGroup>