-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[V3] Ban peers with hackban #2127
Comments
Can confirm that this is a bug. Also as an additional bug, ban does not check if you can actually ban the user and it will error out if the bot doesn't have the permissions to ban. TracebackException in command 'hackban' Traceback (most recent call last): File "/usr/local/lib/python3.6/dist-packages/discord/ext/commands/core.py", line 61, in wrapped ret = await coro(*args, **kwargs) File "/usr/local/lib/python3.6/dist-packages/redbot/cogs/mod/mod.py", line 441, in hackban ban_list = await guild.bans() File "/usr/local/lib/python3.6/dist-packages/discord/guild.py", line 857, in bans data = await self._state.http.get_bans(self.id) File "/usr/local/lib/python3.6/dist-packages/discord/http.py", line 209, in request raise Forbidden(r, data) discord.errors.Forbidden: FORBIDDEN (status code: 403): Missing Permissions The above exception was the direct cause of the following exception: Traceback (most recent call last): |
If the member is in the guild, delegates to existing ban logic. Additionally, check that we have ban perms prior to attempting to fetch the existing ban list. Fixes #2127.
Thanks for this report. Resolved by #2128. |
Command bugs
Command name
[p]hackban
What cog is this command from?
Mod
What were you expecting to happen?
When called by a mod on another mod, display error message: "I cannot let you do that. You are not higher than the user in the role hierarchy." and do nothing.
What actually happened?
Mod got banned, message displayed: "Done. The user will not be able to join this server."
How can we reproduce this issue?
The text was updated successfully, but these errors were encountered: