Discord Bot Permissions Explained
Complete guide to Discord bot permissions. Understand what each permission does and how to configure the right permissions for your AI chatbot.
Understanding Discord Permissions
Discord uses two permission systems for bots:
- Bot Permissions - What the bot can do in servers
- Gateway Intents - What data the bot can access
Both must be configured correctly for your AI chatbot to work.
Essential Permissions for AI Bots
Minimum Required
| Permission | Why Needed | |------------|------------| | View Channels | See channels to respond in | | Send Messages | Reply to users | | Read Message History | Context for conversations |
Recommended Additional
| Permission | Why Needed | |------------|------------| | Embed Links | Rich formatted responses | | Attach Files | Send images/files | | Use Slash Commands | Modern command interface | | Add Reactions | React to messages |
Permission Configuration
Method 1: OAuth2 URL Generator
- Go to Discord Developer Portal
- Select your application
- Navigate to OAuth2 → URL Generator
- Select scopes:
bot,applications.commands - Select permissions (see below)
- Copy generated URL
Recommended Permission Integer
For most AI bots: 274878024704
This includes:
- View Channels
- Send Messages
- Send Messages in Threads
- Embed Links
- Attach Files
- Read Message History
- Use Slash Commands
Permission Calculator
You can use tools like Discord Permission Calculator to generate custom permission integers.
All Bot Permissions Explained
General Permissions
| Permission | Description | AI Bot Need? | |------------|-------------|--------------| | Administrator | Full access to everything | No (risky) | | View Audit Log | See moderation history | No | | View Server Insights | See analytics | No | | Manage Server | Edit server settings | No | | Manage Roles | Create/edit roles | No | | Manage Channels | Create/edit channels | No |
Membership Permissions
| Permission | Description | AI Bot Need? | |------------|-------------|--------------| | Create Invite | Generate invite links | No | | Change Nickname | Change own nickname | Optional | | Manage Nicknames | Change others' nicknames | No | | Kick Members | Remove members | No | | Ban Members | Ban members | No | | Moderate Members | Timeout members | No |
Text Permissions
| Permission | Description | AI Bot Need? | |------------|-------------|--------------| | Send Messages | Send messages | Yes | | Send Messages in Threads | Reply in threads | Yes | | Create Public Threads | Start threads | Optional | | Create Private Threads | Start private threads | No | | Embed Links | Send rich embeds | Yes | | Attach Files | Upload files | Recommended | | Add Reactions | React to messages | Optional | | Use External Emojis | Use emojis from other servers | Optional | | Mention Everyone | @everyone and @here | No | | Manage Messages | Delete/pin messages | Optional | | Manage Threads | Manage thread settings | No | | Read Message History | See past messages | Yes | | Send TTS Messages | Text-to-speech | No |
Voice Permissions
| Permission | Description | AI Bot Need? | |------------|-------------|--------------| | Connect | Join voice channels | No | | Speak | Talk in voice | No | | Video | Stream video | No | | Use Voice Activity | Speak without PTT | No |
Gateway Intents
Intents control what events your bot receives.
Standard Intents (No Approval Needed)
| Intent | Description | |--------|-------------| | Guilds | Server info | | Guild Messages | Messages in servers | | Direct Messages | DM messages |
Privileged Intents (Must Enable in Portal)
| Intent | Description | AI Bot Need? | |--------|-------------|--------------| | Presence Intent | User online status | Optional | | Server Members Intent | Member join/leave | Optional | | Message Content Intent | Read message text | Yes |
Critical: Message Content Intent is required for AI bots to read messages.
Enabling Privileged Intents
- Go to Discord Developer Portal
- Select your application
- Go to Bot section
- Under Privileged Gateway Intents:
- Toggle ON Message Content Intent
- Toggle ON others if needed
- Save changes
Code Configuration
Discord.js Example
const { Client, GatewayIntentBits } = require('discord.js');
const client = new Client({
intents: [
GatewayIntentBits.Guilds,
GatewayIntentBits.GuildMessages,
GatewayIntentBits.MessageContent, // Required for AI bots
GatewayIntentBits.DirectMessages,
]
});
Environment Variables
# Some bots configure intents via .env
DISCORD_INTENTS=Guilds,GuildMessages,MessageContent,DirectMessages
Permission Troubleshooting
"Missing Permissions" Error
- Re-invite bot with correct permissions URL
- Check server-specific role permissions
- Verify channel permission overrides
Bot Can't See Messages
- Enable Message Content Intent in Developer Portal
- Add intent in bot code
- Restart bot
Bot Can't Send Messages
- Check "Send Messages" permission
- Verify channel-specific overrides
- Check if bot role is lower than restriction roles
Bot Can't Use Slash Commands
- Add
applications.commandsscope when inviting - Wait up to an hour for global commands to register
- Check if commands are registered:
client.application.commands.fetch()
Permission Hierarchy
Discord permissions follow hierarchy:
- Server Owner - Always has all permissions
- Administrator - Bypasses all permission checks
- Role Position - Higher roles override lower
- Channel Overrides - Can override server permissions
Your bot's role position affects what it can do.
Security Best Practices
Do's
- Request minimum necessary permissions
- Use slash commands instead of message prefix
- Document why each permission is needed
Don'ts
- Don't request Administrator
- Don't ask for Kick/Ban unless needed
- Don't request Manage Messages unnecessarily
Permission Sets by Use Case
Basic AI Chatbot
274877975552
- View Channels, Send Messages, Embed Links, Read Message History
Full-Featured AI Bot
274878024704
- Above + Attach Files, Slash Commands, Send in Threads
Moderation-Capable Bot
1374389936182
- Above + Manage Messages, Moderate Members
Related Guides
Need Help?
Our setup service configures all permissions correctly for your AI bot.
Need a VPS for Your Bot?
We recommend Hostinger KVM 2 VPS - reliable, fast, and perfect for AI chatbots. Get started with our recommended setup.
Get Hostinger VPSNeed Help With Setup?
Got your VPS? Let us handle the technical work. Professional setup and maintenance for OpenClaw (formerly Clawd.bot).