# Required - Get these from Discord Developer Portal # https://discord.com/developers/applications # # DISCORD_TOKEN: Bot → Token → Reset Token (copy it, only shown once) # DISCORD_CLIENT_ID: OAuth2 → Client ID (or General Information → Application ID) DISCORD_TOKEN=your_bot_token_here DISCORD_CLIENT_ID=your_client_id_here # Optional - Set this for faster command updates during development # Leave empty for global command deployment (takes up to 1 hour) # DISCORD_GUILD_ID: Right-click your server in Discord → Copy Server ID (enable Developer Mode in settings) DISCORD_GUILD_ID= # ============================================================================= # DISCORD DEVELOPER PORTAL SETUP # ============================================================================= # # 1. PRIVILEGED GATEWAY INTENTS (Bot → Privileged Gateway Intents) # Enable these toggles: # - SERVER MEMBERS INTENT (required for GuildMembers) # - MESSAGE CONTENT INTENT (required for MessageContent) # # 2. OAUTH2 SCOPES (OAuth2 → URL Generator) # Select: # - bot # - applications.commands # # 3. BOT PERMISSIONS (OAuth2 → URL Generator → Bot Permissions) # Select: # - View Channels # - Send Messages # - Embed Links # - Read Message History # # 4. INVITE URL # Use the generated URL from OAuth2 → URL Generator, or construct manually: # https://discord.com/api/oauth2/authorize?client_id=YOUR_CLIENT_ID&permissions=83968&scope=bot%20applications.commands # # =============================================================================