Val Town is a collaborative website to build and scale JavaScript apps.
Deploy APIs, crons, & store data – all from the browser, and deployed in milliseconds.
A web dashboard for managing Discord channel messages with API endpoints and webhook support.
- 📨 View Messages — Browse recent messages with search & filter
- ✉️ Send Messages — Send messages to your channel from the dashboard
- 🗑️ Delete Messages — Remove messages with one click
- 🔍 Search — Filter messages by content or username
- 🔗 Webhook Endpoint — Receive external webhooks and forward to Discord
- 🔒 Secure — Bot token stored in environment variables
| Method | Path | Description |
|---|---|---|
GET | /api/messages | Fetch messages (?limit=50&after=ID&before=ID) |
POST | /api/messages | Send message ({ "content": "..." }) |
DELETE | /api/messages/:id | Delete a message |
GET | /api/search?q=... | Search messages |
POST | /api/webhook | Receive webhook ({ "text": "..." }) |
| Key | Description |
|---|---|
DISCORD_BOT_TOKEN | Bot token with Bot prefix |
DISCORD_CHANNEL_ID | Target channel ID |
Rendering mermaid diagram...