Discord Developer Portal Setup for AeThex Activity
Quick Overview
This guide walks you through configuring your Discord app for Activities support. Your app ID is: 578971245454950421
Part 1: Enable Activities Feature
Step 1.1: Open Discord Developer Portal
Go to: https://discord.com/developers/applications
Find and click "AeThex" app in your applications list
You should be on the General Information tab
Step 1.2: Locate and Enable Activities
Scroll down on the General Information tab
Look for "Activity Settings" section
If you see "Enable Activities" button:
Click to enable it
You'll see the Activity configuration form appear
If Activities is already shown, proceed to Step 2
Step 1.3: Initial Configuration
In the Activity Settings section, you'll see these fields:
Activity URL:
(Copy and paste exactly)
Interactions Endpoint URL:
(Copy and paste exactly)
Click "Save" and wait 1-2 minutes for Discord to verify
Part 2: Configure Interactions Endpoint
Step 2.1: Wait for Discord Verification
After you save in Step 1.3, Discord will automatically send a test request to your Interactions Endpoint.
Expected result: Green checkmark appears next to the Interactions Endpoint URL
If you see an error:
Wait 30 seconds
Click "Save" again
Discord will retry the verification
Step 2.2: What Discord is Testing
Discord sends a PING request like this:
Your server should respond with:
This is already implemented in your code/server/index.ts file (lines 57-60).
Part 3: OAuth2 Configuration
Step 3.1: Go to OAuth2 Settings
Click "OAuth2" in the left sidebar
Click "General" sub-tab
Step 3.2: Verify Client Credentials
You should see:
Client ID:
Client Secret:
If the Client Secret is hidden, click "Reset Secret" (you'll need to update your environment variables after this).
Step 3.3: Add Redirect URIs
Scroll to "Redirects" section
Add these redirect URIs:
https://aethex.dev/callbackhttps://aethex.dev/discord-verifyhttps://aethex.dev/roblox-callback
Click "Save Changes"
Step 3.4: Configure Scopes
Click "Scopes" sub-tab in OAuth2 section
For Activities, select at minimum:
✅
identify(read user profile info)✅
guilds(read user's guilds)
For optional features, you might also want:
email(read user's email)connections(read user's connected accounts)
Part 4: Bot Configuration
Step 4.1: Go to Bot Settings
Click "Bot" in the left sidebar
Look for "TOKEN" section
Copy your bot token (it will be a long string starting with your app ID)
⚠️ NEVER share or commit your bot token to git or documentation
Step 4.2: Verify Public Key
In the same Bot section, look for "PUBLIC KEY"
Copy it (it's a 64-character hex string)
⚠️ NEVER share or commit your public key to public documentation
Step 4.3: Ensure Bot Has Required Permissions
Scroll to "Token Permissions" or "Scopes"
Make sure bot has:
✅
applications.commands(for slash commands)✅
bot(for general bot functionality)
Part 5: Environment Variables
Step 5.1: Verify Environment Variables on Your Hosting Platform
If you're using Vercel, Railway, or another hosting platform:
Go to your project settings
Under "Environment Variables", ensure these are set:
⚠️ CRITICAL SECURITY: Never commit these secrets to git or upload to documentation!
Get
DISCORD_BOT_TOKENfrom Discord Developer Portal > Bot sectionGet
DISCORD_CLIENT_SECRETfrom OAuth2 > General sectionGet
DISCORD_PUBLIC_KEYfrom Bot sectionOnly set these in your hosting platform's environment variables (Vercel, Railway, etc.)
Do NOT commit these secrets to git!
Part 6: Test the Activity
Step 6.1: Add Bot to Test Server
Go to "OAuth2" → "URL Generator" in your app settings
Under "Scopes", select:
botapplications.commands
Under "Permissions", select:
Send MessagesRead Messages
Copy the generated URL and open it in your browser
Select a test Discord server to add the bot to
Step 6.2: Launch the Activity
Go to your test Discord server
Right-click the bot's name (AeThex)
Select "Apps" → "AeThex" (or just "AeThex Activity")
The Activity modal should open
Step 6.3: Debug
Open browser developer console: F12
Look for messages starting with
[Discord Activity]These logs will tell you exactly what's happening
Expected log sequence:
Troubleshooting Quick Links
403 Forbidden from Discord API
Activities may not be enabled. See Part 1 Step 1.2
X-Frame-Options: sameorigin
Clear cache and try again. See Part 6 Step 6.3
"Not in Discord Activity context"
Activity URL may be wrong. Check Part 1 Step 1.3
SDK initialization failed
Check VITE_DISCORD_CLIENT_ID in environment. See Part 5
Interactions endpoint failed
Endpoint URL must be exact. Check Part 2 Step 2.1
Verification Checklist
Use this before contacting support:
Still Having Issues?
Check the Troubleshooting Guide: DISCORD-ACTIVITY-TROUBLESHOOTING.md
Check your hosting platform's logs for server errors
Check browser console (F12) for client errors
Wait 10 minutes after changing Discord Portal settings (caching delay)
Clear browser cache completely (Ctrl+Shift+Delete)
Support
For issues with:
Discord API/Portal: Contact Discord Support (https://support.discord.com)
AeThex Activity Code: Check this repo's issues or documentation
Hosting/Deployment: Check your hosting platform's documentation
Last updated
