Enhance Discord integration by adding optional bot permissions in environment files and updating the dashboard to include an "Add Bot to your Server" button. Refactor authentication logic to handle token refresh and improve error handling for Discord sessions. Update placeholder text for better clarity in the search input field.
This commit is contained in:
@@ -11,9 +11,10 @@ NEXT_PUBLIC_API_URL=http://127.0.0.1:8000/api/v1
|
||||
NEXTAUTH_URL=http://localhost:3000/
|
||||
NEXTAUTH_SECRET=generate_a_long_random_secret_here
|
||||
|
||||
# Discord OAuth configuration
|
||||
# Discord OAuth configuration (also used by /api/invite for “Add to Server”)
|
||||
DISCORD_CLIENT_ID=
|
||||
DISCORD_CLIENT_SECRET=
|
||||
# DISCORD_BOT_PERMISSIONS=8
|
||||
|
||||
# Dashboard admin user IDs (comma separated — your Discord user ID)
|
||||
ADMIN_IDS=YOUR_DISCORD_USER_ID_HERE
|
||||
|
||||
Reference in New Issue
Block a user