Discord Activity SPA Implementation Guide
Overview
Architecture
Isolated SPA Pattern (Option A)
Discord Client
↓
└─→ Activity Iframe (SPA)
├─ Discord SDK initialization
├─ OAuth flow via postMessage
├─ User profile display
├─ Realm/Arm information
└─ Quick action buttons (open in new window)
↓
└─→ Main App (https://aethex.dev) opens in new tabKey Changes from Previous Implementation
1. Removed Router Navigation
2. Links Now Open in New Windows
3. Simplified Manifest
File Changes
code/client/pages/Activity.tsx
code/public/discord-manifest.json
Discord Compliance
✅ What This Implementation Does Right
⚠️ Important Limitations
Testing the Activity
Prerequisites
Local Testing
Deployment Testing
Future Enhancements
Expanding Activity Features Without Breaking SPA
URL Mappings for External Resources
Troubleshooting
Activity Won't Load
Links Not Working
User Profile Not Loading
Configuration Checklist
Related Documentation
Last updated
