Add a member to a role
Hi everyone!
I am new to Discord.js. We have a system like this:
Users become a member of the learning management system (Moodle). There are roles... The roles are the same as Discord roles... I have the nickname (or id) of the user and I know the role. I want to automatically register this user to a discord channel and assign the role automatically. I want him to see a welcome message when he comes to the channel. Is this system possible? Also, I couldn't assign the role, I tried this source:
https://github.com/AnIdiotsGuide/discordjs-bot-guide/blob/master/understanding/roles.md#add-a-member-to-a-role
However, I get an error like this:
DiscordAPIError[50013]: Missing Permissions
Thanks in advance for your help.
GitHub
discordjs-bot-guide/understanding/roles.md at master · AnIdiotsGuid...
The basic new coder friendly "idiot's guide", Created by Hindsight#2020 and maintained by the community. - AnIdiotsGuide/discordjs-bot-guide
7 Replies
- What's your exact discord.js
npm list discord.js
and node node -v
version?
- Not a discord.js issue? Check out #other-js-ts.
- Consider reading #how-to-get-help to improve your question!
- Explain what exactly your issue is.
- Post the full error stack trace, not just the top part!
- Show your code!
- Issue solved? Press the button!thats not the official guide, and outdated
other than that, cant help you without code
ok, trying to understand.