Discord Activity Deployment Guide
For Web-Based Development (No Terminal Access)
Step 1: Set Environment Variables
Vercel (Frontend)
VITE_DISCORD_CLIENT_ID=578971245454950421PebbleHost (Discord Bot)
DISCORD_BOT_TOKEN=<your-token>
DISCORD_CLIENT_ID=578971245454950421
DISCORD_PUBLIC_KEY=<your-public-key>
SUPABASE_URL=https://kmdeisowhtsalsekkzqd.supabase.co
SUPABASE_SERVICE_ROLE=<your-service-role-key>
BOT_PORT=3000Vercel (Backend - for command registration)
Step 2: Enable Discord Activities
Step 3: Register Discord Commands via Web API
Option A: Using curl (if you have PebbleHost console access)
Option B: Call from Admin Panel (Future)
Option C: Using Postman
Step 4: Deploy Bot to PebbleHost
Step 5: Deploy Frontend to Vercel
Step 6: Test Discord Activity
Troubleshooting
Error 50240: "Cannot remove Entry Point command"
Activity not loading in Discord
"Unauthorized" error when calling register endpoint
Bot not responding to commands
Quick Reference
What
How
Environment Variables Checklist
What Happens When You Register Commands
Summary
Last updated
