- Visit the Discord Developer Portal and log in with your Discord account.
- Click on the
New Application
button to create a new application for your bot. - Enter a catchy name for your application and click
Create
.
- In the left sidebar, navigate to the Bot section under Settings.
- Click on the
Add Bot
button to bring your application to life! - Under the Token section, click on the
Copy
button to save your bot token securely.
- Still in the Bot section, scroll down to the Privileged Gateway Intents area.
- Enable the following powerful intents:
- ☑️ Server Members Intent
- ☑️ Message Content Intent
Note: These intents may require verification for bots in 100 or more servers.
- Explore the OAuth2 section in the left sidebar, under Settings.
- Scroll down to the Scopes area and select the
bot
checkbox. - Delve into the Bot Permissions section and choose the permissions your bot needs. Make sure to include the Attach Files permission for uploading attachments.
- Voilà! A unique URL will be generated. Copy this URL for the next step.
- Open a new browser tab and paste the copied URL. This will whisk you away to a page where you can integrate your bot into your server.
- Select the desired server where you want to unleash your bot's potential, then click "Authorize". Complete any additional verification steps if prompted.
Remember: Treat your bot token like a secret artifact! Safeguard it from prying eyes and avoid sharing it publicly or committing it to public repositories.