A Discord bot can appear online and still fail when it reads a channel, posts a message or changes a role. Errors 50001 and 50013 are a reason to inspect the failed request and its target, rather than reinstalling Discord on your phone.
Discord defines 50001 as missing access and 50013 as lacking permission for the action. The code narrows the investigation; it does not name the exact role setting that needs changing. This guide is for server administrators and bot maintainers. Members should pass the failing command and channel to those people.
Start with one failed action
Record the operation, guild ID, channel or member ID, bot identity and full API error body in a private diagnostic record. Redact credentials and private message content. “The bot is broken” is much less useful than “the welcome message fails in this one channel after a category change.”
- Confirm that the running process uses the intended application and bot account.
- Verify the resource ID belongs to the server and environment you are testing.
- Compare the same operation in a known working location, using a harmless test that the server owner has approved.
For 50001, investigate access to the resource
Ask whether the bot can actually reach the target resource in its present context. A saved channel ID from an old server, an inaccessible private location or a configuration pointing to another environment warrants investigation. Do not assume that a valid-looking numeric ID proves the resource is available to this bot.
Example: if a deployment starts failing immediately after its configuration was copied, compare its destination IDs with the working deployment before changing everyone’s server permissions. This is a diagnostic example, not proof that every 50001 has a configuration cause.
For 50013, inspect the permission needed for that operation
Check effective permissions in the affected channel, including role and member overwrites. Then consult the endpoint’s requirements. Sending text, attaching a file and managing another member are different actions; success at one does not establish permission for the others.
The person invoking a slash command and the bot executing it are separate permission checks. Giving a member access to a command does not itself grant the bot the permissions needed to complete the requested operation.
Use role hierarchy checks for hierarchy-sensitive actions
Role management and moderation can depend on the bot’s highest role relative to the target. Discord’s permissions documentation explains these constraints. Moving a bot above a target role may be relevant to that action, but moving it higher is not a universal solution to channel access. Administrator also does not erase hierarchy rules.
Verify a narrow change
Have an authorised administrator adjust only the required setting, then retry the original harmless operation once. Record which change resolved it. Avoid granting Administrator as a routine experiment: that obscures the missing permission and gives the integration much broader power than its feature may need.
If it still fails, share the redacted request details and effective-permission findings with the bot developer. Stop repeated failing jobs while investigating so a permission problem does not become a noisy request loop.
Sources and scope
Checked against Discord’s official documentation on 27 November 2026. Diagnostic examples are suggested checks, not claims of a reproduced Discord incident. Interface labels and SDK details can change.
For more troubleshooting and app help, browse our Discord guides.