Discord Integration Guide - Getting Started
Overview
What is a Discord Activity?
Architecture Overview
User in Discord Server
↓
Launches AeThex Activity
↓
Your Game loads in Discord iframe
↓
AeThex SDK handles authentication & state
↓
Your game logic runs normallyPrerequisites
Quick Start (5 minutes)
Step 1: Enable Discord Activity in Developer Portal
Step 2: Configure OAuth2 Redirect URIs
Step 3: Install AeThex SDK
Step 4: Configure Environment Variables
Step 5: Create Discord Activity Page
Step 6: Add Route
Step 7: Test Your Activity
Authentication Flow
1. User Flow
2. Implementation Example
Detecting Discord Activity Context
Account Linking
Option 1: Link from Dashboard
Option 2: Link via /verify Command (Discord Bot)
/verify Command (Discord Bot)Best Practices
✅ Do's
❌ Don'ts
Common Issues & Solutions
Issue: "Could not fetch application data"
Issue: "Failed to authenticate"
Issue: "Session lost during OAuth"
Next Steps
Need Help?
Last updated
