-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
"Missing Permissions" on change_nickname (HAS PERMISSION) #1641
Comments
Are you trying to change the nickname of the server owner or someone else with that same role? |
Neither, I'm trying to change the nickname of myself ("Developer" on the role tree) |
Does the server have Two-Factor Authentication enabled? |
The bot owner has 2FA enabled but I don't believe the server does. I'll check and get back to you. |
I was working on this as well. Find out the bot is not able to change nickname of the admins. Only users who do not have admin privileges are on effect with this. |
Please dont necro year old issue, also the bot cant change stuff for people with a higher role. Users with a higher role than the bot cant have their names changed by the bot. Thats how permissions work. |
I didn't want to reopen it lel, I was just saying it seems to work like this cuz, the OP didn't said anything at the end. |
My bad, totally forgot about this. Fairly certain enabling 2FA fixed it in the end. Thanks @Harmon758! |
the bot needs to have a higher role than the person you change the nickname for. |
This is the code I'm using to attempt to change the nickname of a user:
await client.change_nickname(message.author, newnick)
The role is at the top of the role hierarchy and has the necessary permissions to change nicknames:
The role is assigned to the bot:
And yet discord.py still throws a permission error:
Sending messages works just fine. I'm stumped.
The text was updated successfully, but these errors were encountered: