Error Codes FAQ
Common Discord API errors and how to fix them
Missing Permissions Error 50013 HTTP 403
The bot doesn't have sufficient permissions to perform this action.
Solution
Move the 'Scrapline' role (or your allocated bot role) above the target role in Discord's role hierarchy. The bot role must be higher than any role it needs to manage.
- Go to Server Settings → Roles
- Drag the bot's role above the roles it needs to manage
- Ensure the bot role has the required permissions enabled
- Check channel-specific permission overrides
Common Causes
- Bot role is below the role it's trying to manage
- Bot doesn't have the required permission enabled in server settings
- Channel-specific permissions are blocking the bot
Unknown Channel Error 10003 HTTP 404
Not FoundThe channel was deleted, doesn't exist, or the bot can't access it.
Solution
Re-select the channel in the dashboard or recreate it if it was deleted.
- Go to your server dashboard
- Navigate to the relevant module (Verification, Tickets, etc.)
- Re-select the channel from the dropdown
- Save your changes
Common Causes
- Channel was deleted
- Bot was removed from the server and re-added
- Channel permissions changed
- Channel ID is incorrect
Unknown Guild Error 10004 HTTP 404
Not FoundThe server (guild) doesn't exist or the bot is no longer in it.
Solution
Re-invite the bot to your server using the invite link.
- Go to the invite page
- Select your server
- Ensure the bot has the required permissions
- Complete the invite process
Common Causes
- Bot was removed from the server
- Server was deleted
- Bot invite expired
Unknown User Error 10007 HTTP 404
Not FoundThe user doesn't exist, left the server, or the bot can't see them.
Solution
The user may have left the server. Check if they're still a member.
- Verify the user is still in your server
- Check if the user was banned or left
- Try the action again with a different user
Common Causes
- User left the server
- User was banned
- User account was deleted
- Bot can't see the user due to permissions
Cannot Send Messages to This User Error 50007 HTTP 403
The bot cannot send a direct message (DM) to this user. Common when the user has DMs disabled or has blocked the bot.
Solution
The moderation action may still have been applied (for example, a mute). The user will not receive a DM. Ask them to enable DMs from server members or to unblock the bot if they want to receive notifications.
- The mute/ban/kick still applies; only the DM failed
- To allow DMs: User Settings → Privacy & Safety → Allow direct messages from server members
- User can unblock the bot if they previously blocked it
Common Causes
- User has DMs disabled for this server
- User has blocked the bot
- User has disabled DMs from everyone
Missing Access Error 50001 HTTP 403
The bot doesn't have access to the resource (channel, role, etc.).
Solution
Ensure the bot has access to the channel or role. Check channel permissions and role hierarchy.
- Check channel permissions for the bot
- Verify the bot role is high enough in the hierarchy
- Add the bot to private channels if needed
Common Causes
- Channel is private and bot isn't added
- Role is above the bot's role
- Channel permissions deny access
Invalid Form Body Error 50035 HTTP 400
Invalid Form BodyThe request data is invalid or malformed.
Solution
Check the data being sent. This usually indicates a bug in the bot or dashboard.
- Try the action again
- If it persists, contact support
- Check Discord's status page for API issues
Common Causes
- Invalid data format
- Missing required fields
- Data exceeds Discord's limits
Too Many Requests HTTP 429
Rate LimitsYou've exceeded Discord's rate limit. Wait before trying again.
Solution
Wait a few seconds and try again. Rate limits reset automatically.
- Wait 1-5 seconds
- Try the action again
- For bulk operations, space them out over time
Common Causes
- Too many requests in a short time
- Bulk operations (banning many users)
- Rapid command usage
Internal Server Error HTTP 500
Server ErrorDiscord's API is experiencing issues.
Solution
Wait a moment and try again. Check Discord's status page if issues persist.
- Wait 30-60 seconds
- Check https://discordstatus.com
- Try again after Discord resolves the issue
Common Causes
- Discord API outage
- Temporary Discord server issues
- Discord maintenance
Invalid OAuth2 Access Token Error 50025 HTTP 403
The OAuth token is invalid or expired.
Solution
Re-authenticate by logging out and logging back in.
- Log out of the dashboard
- Log back in with Discord
- Try the action again
Common Causes
- Token expired
- Token was revoked
- User changed password
Invalid Webhook Token Error 50027 HTTP 403
The webhook token is invalid or the webhook was deleted.
Solution
Recreate the webhook or update the webhook URL in settings.
- Go to Server Settings → Integrations → Webhooks
- Create a new webhook or update the existing one
- Update the webhook URL in your bot settings
Common Causes
- Webhook was deleted
- Webhook token changed
- Invalid webhook URL
Mute Command Failed Error SCP-MUTE HTTP 403
ModerationThe /mute command failed. This usually means the bot cannot assign the Muted role or create it.
Solution
Give Scrapline a role with Administrator (or at minimum: Manage Roles) and drag it above the Muted role and above the target member's highest role in Server Settings → Roles.
- Go to Server Settings → Roles
- Drag the Scrapline role above the Muted role
- Ensure Scrapline's role has Manage Roles (or Administrator) enabled
- If Muted doesn't exist, the bot will create it. Ensure it has Create Role permission
- Try the mute command again
Common Causes
- Bot role is below the Muted role in the hierarchy
- Bot role is below the member being muted
- Bot lacks Manage Roles permission
- Bot lacks Create Role permission (when creating Muted for the first time)
Missing Permissions (Mute/Warn/Kick/Ban) Error 50013 HTTP 403
ModerationThe bot lacks permission to perform the moderation action. For mutes, the bot needs Manage Roles and a role higher than both the Muted role and the target.
Solution
Move the Scrapline role above the Muted role (and above members you want to mute). Grant Manage Roles and, for creating Muted, Create Role.
- Server Settings → Roles → drag Scrapline above Muted
- Right-click Scrapline's role → Edit → enable Manage Roles
- For first-time setup: enable Create Role so the bot can create the Muted role
Common Causes
- Bot role is below the Muted role
- Bot role is below the target's highest role
- Manage Roles is disabled for the bot