Software & Apps

How to Add Bots to Discord

Bots are the difference between a Discord server that just exists and one that actually runs smoothly. They welcome new members, filter spam, queue up music, run polls, hand out roles, log moderation actions, and handle a hundred small chores that would otherwise eat up your evening. The good news: adding one takes less than a minute. The slightly less good news: picking the wrong permissions or skipping a step is how servers end up with a bot that sits offline or can’t do the one job you installed it for.

Below, we cover the full picture — what bots actually do under the hood, how to install them through Discord’s built-in directory, how to use a direct invite link, how to add a bot you built yourself, the permission settings worth caring about, and the fixes for the issues that trip people up most often. Here’s what’s inside:

  • What a Discord bot really is (and what it isn’t)
  • Adding a bot through the app directory
  • Adding a bot with an invite link
  • Adding your own custom bot
  • Permissions, roles, and how to keep things locked down
  • Troubleshooting the most common install failures

What a Discord Bot Actually Is

A bot is just a user account that’s automated. Behind the scenes it’s a small program connected to Discord’s API, listening for events — a message posted, a member joining, a slash command typed — and responding according to whatever logic its developer wrote. To Discord, it’s a member of your server. To you, it’s a tool.

That framing matters, because it explains why bots need permissions and roles just like human members do. A bot can’t delete messages it can’t see, and it can’t assign a role that sits higher than its own in the hierarchy. Every install problem you’ll ever hit comes back to that idea.

The Easiest Route: Discord’s App Directory

Discord ships with a searchable directory of vetted bots. It’s the safest starting point because listed bots go through a review process, and installation is a few clicks.

  1. Open the server you want to add the bot to.
  2. Click the server name at the top left to open the dropdown, then choose the app directory. You can also reach it from Server Settings → Integrations.
  3. Search by name or browse categories like moderation, music, utility, or games.
  4. Open the bot’s page and hit Add to Server.
  5. Pick the correct server from the dropdown — this is where people accidentally install to the wrong place.
  6. Review the permission list Discord shows you, then authorize.
  7. Complete any two-factor or captcha prompt, and the bot will appear in your member list.

That’s it. The bot is live the moment you authorize it. Most bots will post a setup message or respond to a slash command like /help to walk you through configuration.

Adding a Bot With an Invite Link

Not every bot lives in the directory. Many developers host their own invite links, and this is also the method you’ll use for private or niche bots. The link usually looks like a long string with client_id and permissions parameters attached.

  1. Copy the invite link from the bot’s official page.
  2. Paste it into your browser and hit enter.
  3. Sign in if prompted, then choose the target server from the dropdown.
  4. Read the permissions summary carefully — a link can pre-select anything from “Send Messages” to full Administrator.
  5. Click Authorize and complete the verification step.

One habit worth building: before you authorize, ask whether the bot genuinely needs each permission listed. A music bot requesting Administrator access is a red flag, not a feature.

Adding Your Own Bot

If you want something custom — a welcome flow built around your community, an internal tool, a game — you’ll create the bot yourself and then add it to your server.

  1. Head to the Discord developer portal and create a new application.
  2. Open the Bot tab and add a bot user to that application.
  3. Copy the bot token and store it somewhere private. Never paste it into a public repo or share it in chat — anyone with the token controls the bot.
  4. Enable any privileged intents your code needs, like member or message content access.
  5. Generate an OAuth2 invite URL using the bot scope, plus applications.commands if you’re using slash commands.
  6. Open that URL, choose your server, and authorize.

From there, the bot needs to be running somewhere — a local machine for testing, or a hosting service for 24/7 uptime. If the bot shows as offline in your member list, the code simply isn’t running yet.

Permissions and Roles: The Part That Matters

Get this right once and you’ll never fight with a bot again.

  • Skip Administrator unless you truly need it. Grant specific permissions instead — Manage Messages, Kick Members, Embed Links, Read Message History.
  • Role position is everything. A bot’s role must sit above any role it needs to assign or moderate. Drag it up in Server Settings → Roles.
  • Channel overrides beat server permissions. If a bot is silent in one channel, check that channel’s permission settings before reinstalling anything.
  • Audit regularly. Remove bots you’ve stopped using. Every extra bot is another set of permissions you’re trusting.

When It Doesn’t Work

The bot shows offline. Its hosting is down or the code isn’t running. Nothing on your end to fix.

Commands don’t appear. Re-invite with the applications.commands scope, or give Discord a few minutes to sync slash commands.

You can’t authorize at all. You need Manage Server permission, and servers with two-factor enforcement require 2FA enabled on your own account.

The bot ignores you. Nine times out of ten it’s missing Read Messages or Send Messages in that specific channel.

It can’t assign roles. Move the bot’s role higher in the hierarchy.

Wrapping It Up

Adding a bot to Discord is genuinely a one-minute job — pick your install route, read the permission screen before you click authorize, and position the bot’s role correctly. Do those three things and you’ll skip almost every problem people run into. Start with one solid moderation or utility bot, get comfortable with how it behaves, then layer in more as your server grows.

If you want to keep sharpening your setup — server structure, security habits, automation tricks, and everything else worth knowing before the rest of the internet catches on — there’s plenty more waiting for you over on TechBlazing.