Discord Bot Missing Access Permission: Audit Guide
In this article
When a Discord bot suddenly stops responding or can't perform actions like reading messages, sending replies, or managing roles, the usual cause is a missing or misconfigured permission. This guide walks you through a step-by-step audit of your bot's permissions, from server-level roles to channel-specific overrides, so you can pinpoint exactly where access is blocked and fix it.
What You'll Need
- Discord server where the bot is added (you need Manage Server permission to change bot permissions).
- Access to the Discord Developer Portal (discord.com/developers) if you need to check the bot's OAuth2 scopes or re-invite it.
- The bot's client ID (found in the Developer Portal under General Information).
Step-by-Step
- Check the bot's online status. If the bot is offline, permissions are irrelevant. Look at the member list in your server; if the bot shows offline, skip to the Troubleshooting section.
- Open server settings. Click the server name at the top-left, then select Server Settings.
- Go to Roles. In the left sidebar, click Roles. Find the bot's role (usually named after the bot or "Bots"). If the bot has no role, Discord gives it the default @everyone permissions.
- Review the bot's role permissions. Click the bot's role, then look at the Permissions tab. Ensure the bot has the needed permissions for its function. Common ones: View Channels, Send Messages, Read Message History, Embed Links, Attach Files, Manage Messages (for moderation bots), Manage Roles (for role-assign bots), Kick/Ban Members (for moderation). If a permission is missing, toggle it on and click Save Changes.
- Check channel-specific overrides. Even if the role has permissions, a channel override can deny them. Go to a channel where the bot fails, click the gear icon (Edit Channel), then Permissions. Look for the bot's role in the list. If it appears, ensure the green checkmarks are set for needed permissions, not red X's. If the bot's role isn't listed, the channel uses the role's defaults.
- Check category overrides. Channels inside a category inherit permissions from that category. Right-click the category (or click the gear next to the category name), then Permissions. Verify the bot's role has the needed permissions here as well.
- Check @everyone overrides. Sometimes @everyone is set to deny a permission, and the bot's role is lower in the hierarchy, so the deny overrides. In the channel or category permissions, check if @everyone has a red X for a permission the bot needs. If so, you can either change @everyone or give the bot's role a green checkmark (which overrides @everyone).
- Verify role hierarchy. Discord uses role position to determine if a bot can moderate other members. In Server Settings > Roles, drag the bot's role above the roles it needs to manage (e.g., if it assigns a role, the bot's role must be above that role). If the bot's role is below, it cannot assign or manage those roles.
- Check the bot's OAuth2 scopes (if it was just added). If the bot was invited with limited scopes, it might lack permissions entirely. Go to the Developer Portal, select your bot, then OAuth2 > URL Generator. Ensure the bot scope is selected, and the permissions below match what the bot needs. Re-invite the bot with the correct permissions if necessary.
- Test with a simple command. After adjusting permissions, have the bot run a simple command (like a ping or help command) to see if it responds. If it still fails, move to Troubleshooting.
Common Mistakes
- Only checking the role, not channel overrides. A channel-specific deny will override the role's allow.
- Forgetting the bot's role is below the target role. The bot cannot manage roles that are higher or equal in the hierarchy.
- Using the wrong role. If the bot has multiple roles, the highest one's permissions are used, but all roles' permissions are additive (except denies). Check all roles the bot has.
- Not saving changes. Discord doesn't auto-save permission changes; you must click Save Changes.
- Inviting the bot without the right permissions. If the invite link didn't include the needed permissions, the bot won't have them even if you later edit the role.
Tips
- Use the bot's own error messages. Many bots log missing permissions in their console or send a message like "I need the 'Manage Messages' permission." Use that as a clue.
- Create a dedicated role for the bot. This makes it easier to manage permissions without affecting other members.
- When in doubt, grant "Administrator" temporarily. This bypasses all permission checks. Test the bot; if it works, gradually remove permissions until you find the culprit. Never leave Administrator on permanently for security.
- Check the bot's documentation. The bot's official site or GitHub usually lists required permissions.
- Use Discord's permission calculator. When generating an invite URL, the Developer Portal shows a permission calculator; use it to see exactly what the bot will have.
Troubleshooting
If the audit didn't solve the issue:
- Restart the bot. Sometimes the bot's cache is stale. Kick and re-invite the bot (this does not delete its settings).
- Check if the bot is rate-limited or globally banned. If the bot is sending too many requests, Discord may temporarily block it. Wait a few minutes.
- Verify the bot's token. If the bot is online but not responding, the token might be invalid. Check the Developer Portal and regenerate the token if needed (this will log the bot out).
- Look for a server-specific issue. Try the bot in another server. If it works there, the problem is with your server's settings.
- Check Discord's status. Rarely, Discord's API may be down. Visit status.discord.com to rule this out.
- If nothing works, re-invite the bot. Use the Developer Portal to generate a new invite URL with the exact permissions needed, then kick the bot and re-add it.
Frequently Asked Questions
Why does my bot have permissions but still can't send messages?
Check if the channel is a text channel or a thread. Bots need the Send Messages in Threads permission to reply in threads. Also, check if the channel is slowmode or if the bot is being rate-limited.
How do I give my bot Administrator permission?
In Server Settings > Roles, find the bot's role, toggle Administrator on, and save. This grants all permissions, bypassing all overrides.
Can I give a bot permissions without a role?
Yes, you can edit channel-specific permissions directly for the bot by adding it as a member in the channel's permission list. However, this is messy; a role is better.
Why does my bot need "Manage Roles" to assign a role?
Assigning a role requires the bot to have Manage Roles permission, and the bot's role must be above the role it's assigning. This is a Discord security measure.
What does "Missing Access" mean in Discord?
It means the bot (or user) lacks the View Channel permission for that specific channel. Even if other permissions are granted, without View Channel, the bot cannot see the channel at all.
Do I need to re-invite the bot after changing permissions?
No, changing permissions in Server Settings takes effect immediately. You only need to re-invite if you want to change the bot's granted permissions at the OAuth2 level (e.g., adding a new scope).