Missing permissions error; need help troubleshooting
Traceback (most recent call last):
File "/usr/local/lib/python3.12/site-packages/discord/commands/core.py", line 138, in wrapped
ret = await coro(arg)
^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/discord/commands/core.py", line 1078, in _invoke
await self.callback(self.cog, ctx, **kwargs)
File "/app/cogs/moderation.py", line 204, in ban_command
await ctx.guild.ban(member, reason=reason)
File "/usr/local/lib/python3.12/site-packages/discord/guild.py", line 3114, in ban
await self._state.http.ban(
File "/usr/local/lib/python3.12/site-packages/discord/http.py", line 368, in request
raise Forbidden(response, data)
discord.errors.Forbidden: 403 Forbidden (error code: 50013): Missing Permissions
This is the error that is thrown whenever a command is run to kick a user or ban a user, the bot was a commission for a client that runs in a docker container on a hetzner vps. I use py-cord and ezcord. The weird thing about this is that the command work 100% fine with the exact same bot in the testing server in the same instance of the bot, but no matter what permission changes happen in the main server it always throws this error, I'm unsure of why this happens; I'd love to recieve some help. Let me know if you need any other data.
Posted Oct 10, 2025, 7:29 PM UTC