Helpcenter / Discord / How to setup discord bot
How to Set Up a Discord Bot

🚀 How to Set Up a Discord Bot

Step 1: Create an Application

1. Go to the Discord Developer Portal.

2. Click “New Application”, give it a name (e.g. My Cool Bot), and hit Create.

3. You’ll now see your new app’s dashboard. This is where all bot settings live.

Step 2: Retrieve Your Bot Token

1. In your application, navigate to the Bot tab.

2. Click Add Bot → confirm.

3. Under the Token section, click “Copy”.

YOUR_BOT_TOKEN_HERE
🚨 Warning: Never share your token. If leaked, regenerate immediately.

Troubleshooting:

  • Invalid Token → regenerate it and update your bot’s code.
  • No token visible → make sure you added a bot to your app.
Step 3: Grant Privileged Gateway Intents

Enable these in your Bot settingsPrivileged Gateway Intents:

  • ✅ Presence Intent (track user status)
  • ✅ Server Members Intent (access member data)
  • ✅ Message Content Intent (read message text)

Pro Tip: Only enable what you need. More intents = more resource use.

Step 4: Invite Your Bot to a Server

Use the tool below to generate your bot’s invite link:

Troubleshooting:

  • “Missing Access” → check the server has role permissions.
  • Invite not working → verify you used the correct Client ID.
🎉 Congrats! You just completed setting up your Discord Bot.

Next step: run your bot code locally or on a GhostNode server!

Do you think this article is helpful?

1 people thought this article was helpful (1 votes)