Set up Discord
Prerequisites and least privilege
Install and enable Switchboard, use an enabled limited-capability Burrow agent, and confirm Core exposes context.agents.turns.submit and context.agents.turns.read. Use one Discord application/bot per goblin (and one named Discord connection per bot); do not reuse a token across connections. In the Discord Developer Portal, create each application, add its bot, securely retain its bot token, and enable the Message Content privileged intent for each bot. Switchboard needs message content and attachments for admission and turns. Enable Message Content in the portal and obtain privileged-intent approval when Discord requires it for your application. Do not paste tokens into chats, logs or support reports. See Discord’s Message Content intent requirements.
Generate a bot invite for the intended server with View Channels, Send Messages, Attach Files, Read Message History, and Send Messages in Threads. Do not grant Administrator merely for Switchboard. Allow each bot to see/read and post in the specific channel and thread you intend to use. For a private thread, explicitly add/invite each bot as a thread member: parent-channel permissions alone do not imply thread membership. Discord also permits access through Manage Threads, but granting that broader permission is not required by this guide. Server/channel permission overwrites still apply. Switchboard does not set Discord intents or permissions for you. See Discord thread permissions.
Switchboard connects outward to Discord's Gateway (WebSocket) and REST API; it does not register an inbound interaction/webhook URL or require an inbound reverse proxy. It handles text messages, PNG/JPEG/GIF/WebP attachments and native slash commands, including binary outbound image replies; voice and streaming are not supported.
First server or DM
- In Settings → Switchboard → Configuration, choose Add bot → Discord, enter its name and token, choose who answers new chats, and leave Receive messages on. Archive → Mods → Switchboard is retained historical work and reply outcomes.
- Once the gateway observes the server (guild), it appears in Pending admissions → Servers. Use Allow server once for this bot. Visible channels and threads now inherit access without per-channel approval. Discord permission overwrites and private-thread membership still apply.
- Send a fresh human mention or reply to the bot in a channel. Each channel/thread has an isolated session and room context. DMs remain individually admitted under Pending admissions; approved access and explicit/legacy channel overrides are managed under Chat mappings, including Channel and thread exceptions.
- In Chat mappings → Servers, pause/revoke server access to stop inherited routes. Explicit room grants remain independent; disable/remove those separately when needed. Rejected server mutations do not revoke valid in-flight replies.
Two-bot acceptance checklist (operator-run, not a live verification claim)
- Create separate applications/connections and assigned goblins; enable Message Content and invite both with suitable Discord permissions.
- Under Pending admissions → Servers, approve the observed server for each bot once. Send fresh human mentions to verify replies; do not approve every channel/thread.
- Ask bot A for a distinctive fact; wait for its posted reply. Mention bot B and ask what A said. Shared bounded channel context supplies the reply without bot-authored wake loops. Unaddressed guild text remains context only.
- Test a second channel and a thread. They inherit access but must not share parent/sibling session history. Invite bots into private threads when Discord requires it.
- Restart and verify reconnection and bounded history. Inspect Archive → Mods → Switchboard; ambiguous outbound sends are not automatically resent. No repository fixture or mocked test constitutes live provider acceptance.
Native slash commands
Switchboard registers /help, /status, /stop, /new, and /model with Discord
when its bot connects. Registration uses individual command upserts, not bulk
replacement: unrelated application commands are retained. Same-name chat-input
commands belong to Switchboard. Discord automatically includes applications.commands with the bot scope;
global commands may take time to propagate. See application-command authorization. If registration
fails, messaging stays available and registration is retried on reconnect.
Commands operate in enabled explicit mappings or inherited routes in an authorized server; DMs still require approval. /help
and /status are channel-scoped. /stop, /new, and model changes require a human
DM participant, or Manage Server / Administrator in guilds. Bots are ignored.
Replies are ephemeral and mentions are suppressed. Commands never generate LLM prompts.
/stopcancels pending deliveries belonging to this mapped agent and current session only. An ambiguous admission is resolved with its durable idempotency key before cancellation; other sessions are not canceled./newcreates an owner-bound Core session and durably updates this channel's session binding. Prior sessions/history remain, but old replies are suppressed and pre-reset room history/quotes are not injected into the fresh session. Interaction IDs are Core creation idempotency keys./modelshows the selection;/model selection:offers safe inventory autocomplete and changes the current owner-bound session. Legacy deterministic Discord sessions must use/newfirst. Agent reassignment clears the old owned session binding.
Release compatibility: deploy Core's external agent cancellation, owner-bound
session creation/model read/model write, and safe context.models.list() APIs
before deploying this Switchboard release. Core with compatible submit/read retains ordinary messaging. Missing command methods produce upgrade guidance; a capability failure can instead produce the generic command-failed response. Do not use the turns indicator as proof that every command is supported. Interaction tokens are
transient REST credentials: never stored in settings, delivery records, or public state.
Initial deferrals are sent outside the serialized message queue; failed acknowledgments
perform no command side effects. Completed interaction IDs are durably deduplicated
within a bounded recent ledger (200 records); in-memory acknowledgments are bounded
at 500 IDs. A process failure after deferral can leave the ephemeral reply unfinished;
/new retries use Core idempotency, not a second fresh session.
Provider instructions rechecked 2026-10-25 against the official links above; source review covers version 2026.10.24.3 (d1388ca8c65e250411034de7560de59d3ffdc875). The checklist is for operator acceptance, not a claim that this documentation pass ran it.
Images
After approval, a DM can contain only images; guild/channel/thread images still require the normal mention/reply to the bot, even if the caption is otherwise empty. Up to four PNG/JPEG/GIF/WebP images / 20 MiB aggregate are accepted. Switchboard anonymously downloads validated Discord CDN attachments, freezes bytes before Core admission and never re-downloads on uncertain replay. Compatible Core and an image-capable model are required for vision. Both transports also upload generated Core output images (including image-only replies); Discord needs Attach Files permission. See image troubleshooting and output limits.