How to add and remove a specific role to a user?

Node version = 18.16.0 Discord.js version = 14.11.0
4 Replies
d.js toolkit
d.js toolkit2y ago
• What's your exact discord.js npm list discord.js and node node -v version? • Post the full error stack trace, not just the top part! • Show your code! • Explain what exactly your issue is. • Not a discord.js issue? Check out #useful-servers.
d.js docs
d.js docs2y ago
guide Popular Topics: Administrative - How do I add a role to a guild member? read more
galtic
galticOP2y ago
@here i read it but how do i set the role? and have i tu put await before? where i put the role id how? ok have i to put await interaction. before or just what is shown ? not for the role if this command is run it just add this role to the member selected the role options doesn’t has to be in my code
d.js docs
d.js docs2y ago
method GuildMemberRoleManager#add() Adds a role (or multiple roles) to the member.
Want results from more Discord servers?
Add your server