# discord/ — Discord Configuration REST API (Data Layer Only)

See @../../CLAUDE.md for project-wide patterns.

## Architecture
REST-API-only domain (NO tools.py — not exposed via MCP). Data layer only:
- `routes.py` — REST endpoints for config CRUD, channel mappings, paired users, activity logs, message storage
- `client.py` — HTTP client methods for the above endpoints
- `schemas.py` — Pydantic request/response models

## Discord Bot
The Discord bot (WebSocket connection, message handling, AI responses, slash commands)
has moved to **peon-grukk** at `peon_mcp/grukk/discord/`. peon-api is a pure REST API
and no longer runs a Discord bot.

## Bot Control Endpoints
The `/api/discord/configs/{id}/start`, `/stop`, `/status`, and `/send` endpoints
still exist in routes.py but return 503 ("Bot manager not initialised") since the
bot now runs in peon-grukk. These endpoints may be removed in a future cleanup.

## Gotchas
- Bot tokens are NEVER logged — masked as `****` in API responses
