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.

Discord Dashboard

A web dashboard for managing Discord channel messages with API endpoints and webhook support.

Features

  • 📨 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

API Endpoints

MethodPathDescription
GET/api/messagesFetch messages (?limit=50&after=ID&before=ID)
POST/api/messagesSend message ({ "content": "..." })
DELETE/api/messages/:idDelete a message
GET/api/search?q=...Search messages
POST/api/webhookReceive webhook ({ "text": "..." })

Environment Variables

KeyDescription
DISCORD_BOT_TOKENBot token with Bot prefix
DISCORD_CHANNEL_IDTarget channel ID

Architecture

Rendering mermaid diagram...