What is the "remove role from member" code

..
8 Replies
d.js toolkit
d.js toolkit11mo 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. - Issue solved? Press the button!
xjanex
xjanex11mo ago
Hi, I want to know how to make the command to remove a role from members
Syjalo
Syjalo11mo ago
Try to convert your sentence into the code member.roles.remove()
d.js docs
d.js docs11mo ago
method GuildMemberRoleManager#remove() Removes a role (or multiple roles) from the member.
xjanex
xjanex11mo ago
do i put the role id between the () ?
Syjalo
Syjalo11mo ago
Here's the doc
xjanex
xjanex11mo ago
I mean i want to create a command that when a members use it it will remove a specific role from him
treble/luna
treble/luna11mo ago
Just read the doc, it shows you how