Skip to main content
Before running pwr-bot, you need to create a Discord application and configure it with the necessary permissions.
1

Create a Discord Application

  1. Go to the Discord Developer Portal
  2. Click New Application and give it a name
2

Configure Bot Settings

Navigate to the Bot tab:
  1. Click Reset Token to generate your bot token
  2. Copy and save this token securely - you’ll need it for the DISCORD_TOKEN environment variable
  3. Under Privileged Gateway Intents, enable:
    • Message Content Intent (required for the bot to read message content)
Never share your bot token publicly. Anyone with this token can control your bot.
3

Set Bot Permissions

Navigate to OAuth2 → URL Generator:
  1. Under Scopes, select:
    • bot
    • applications.commands
  2. Under Bot Permissions, select:
    • View Channels
    • Send Messages
    • Embed Links
    • Read Message History (Required for the !register command)
  3. Copy the generated URL at the bottom of the page
4

Invite Bot to Server

  1. Paste the generated URL into your browser
  2. Select the server you want to add the bot to
  3. Click Authorize
5

Get Application ID

Navigate to the General Information tab:
  1. Copy the Application ID
  2. Save this for the DISCORD_APPLICATION_ID environment variable (required if using the autoregister command feature)

Next Steps

After completing the Discord setup:
  1. Choose your installation method:
  2. Configure your environment variables in the Configuration guide
  3. See the command registration steps in the Quick Start guide

Build docs developers (and LLMs) love