GuildMember#setNickname api is always getting permissions missing
My bot has following permissions in my serverCREATE_INSTANT_INVITE
- KICK_MEMBERS
- BAN_MEMBERS
- ADMINISTRATOR
- MANAGE_CHANNELS
- MANAGE_GUILD
- ADD_REACTIONS
- VIEW_AUDIT_LOG
- PRIORITY_SPEAKER
- STREAM
- VIEW_CHANNEL
- SEND_MESSAGES
- SEND_TTS_MESSAGES
- MANAGE_MESSAGES
- EMBED_LINKS
- ATTACH_FILES
- READ_MESSAGE_HISTORY
- MENTION_EVERYONE
- USE_EXTERNAL_EMOJIS
- VIEW_GUILD_INSIGHTS
- CONNECT
- SPEAK
- MUTE_MEMBERS
- DEAFEN_MEMBERS
- MOVE_MEMBERS
- USE_VAD
- CHANGE_NICKNAME
- MANAGE_NICKNAMES
- MANAGE_ROLES
- MANAGE_WEBHOOKS
- MANAGE_EMOJIS
I am sure it should have permissions to change member's nickname, but i always get Missing Permissions with the GuildMember#setNickname
-
That could still happen if the person who's name you're trying to change has a higher role than your bot.
0 -
But how the permissions level was defined? i tried with every non admin role but some can some cannot
0 -
Also has nothing to do with the API itself. Discord.js has their own separate issues tab on the official github.
https://github.com/discordjs/discord.js/issuesedit: make sure the bot's role is higher than every role in the list. Also, the bot cannot change the owner of the server's nickname in my experience.
0
Please sign in to leave a comment.
Comments
3 comments