Skip to content
← All docs

Bot token & intents in the Developer Portal

Create a Discord application, get a bot token, enable intents and invite the bot.

Create the application

  1. Go to the Discord Developer Portal (discord.com/developers/applications) and sign in.
  2. Click New Application, give it a name and accept Discord's terms.
  3. Copy the Application ID from General Information and paste it in your bot's Settings on BotHarbor.

Get the bot token

  1. Open the Bot page of your application.
  2. Click Reset Token and copy it. Discord only shows it once.
  3. In BotHarbor open Settings → Secrets, choose the name DISCORD_TOKEN and paste the value.
Treat the token like a password. Never paste it in chats, screenshots or public repositories. If it leaks, reset it in the Developer Portal and update the secret.

Privileged intents

Some features need privileged gateway intents, which you must switch on in the Bot page:

  • Server Members Intent — welcome and leave messages (member join/leave events).
  • Message Content Intent — word filters, levels and message triggers.

The bot's Overview tab lists exactly which intents your bot needs.

Invite the bot

Once the Application ID is saved, the Overview tab shows an Invite button with the right permissions pre-selected. Choose a server you manage and authorise it.

Role position

A bot can only manage roles and members below its own highest role. In Server Settings → Roles, drag the bot's role above the roles it should assign.