Discord Bot Setup

March 5, 2026 ยท View on GitHub

1. Create a Discord Application

app-create

2. Copy Application ID

  • Go to General Information and copy the Application ID
APPLICATION_ID

3. Create a Bot User

  • Go to the Bot section in the left sidebar
  • Click Add Bot
  • Under Token, click Copy (keep this secure!)
  • Click Save Changes
bot-token

4. Invite the Bot to Your Server

Go to OAuth2 > URL Generator and select these scopes:

bot
applications.commands
oauth2

Then select all of the following bot permissions:

PermissionWhy It's Needed
Manage ChannelsCreates categories and text channels on startup (one per branch)
View ChannelsFinds existing categories/channels to avoid duplicates
Send MessagesSends embeds, streaming output, completion messages, startup notification
Embed LinksAll bot output uses rich embeds (code, status, completions, errors)
Attach FilesFile attachment support in message payloads
Read Message HistoryReads channel to find its own messages
Use External EmojisEmoji formatting in status and completion embeds
Use Application CommandsAll 45+ slash commands
botallowcommands

Quick invite URL (replace YOUR_APP_ID):

https://discord.com/oauth2/authorize?client_id=YOUR_APP_ID&scope=bot+applications.commands&permissions=412317248576

Gateway Intents: Only the Guilds intent is used. No privileged intents (Message Content, Members, Presence) required. No toggles needed in the Developer Portal.

Copy the generated URL, open it in your browser, select your Discord server, and authorize the bot.

authorize

Next Steps

Once your bot is set up, follow the Installation Guide to run it.