izy521 / discord.io

A small, single-file library for creating DiscordApp clients from Node.js or the browser
https://discord.gg/0MvHMfHcTKVVmIGP
MIT License
535 stars 155 forks source link

editNickname not working #272

Open manstie opened 6 years ago

manstie commented 6 years ago

I have a simple editNickname command which has the server id copied directly from discord and a user's ID copied directly from discord and the bot has the manage nicknames privilege and it still won't change their nickname.

Mrthomas20121 commented 6 years ago

don't you mind sharing your code ? also you can get the serverID using this : bot.channels[channelID].guild_id. i suggest you join the official server for this lib so we can help you out further https://discord.gg/0MvHMfHcTKVVmIGP

vegeta897 commented 6 years ago

Random guess: Make sure your IDs are strings, e.g. "12345678987654321"

manstie commented 6 years ago

I figured it out after switching to discord.js, it gave me an error that it didn't have permissions to do so and there was something broken with one of the first roles I made which made it fail even though it did have greater permissions than those with that role.