What is the "remove role from member" code

..
8 Replies
d.js toolkit
d.js toolkit17mo 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
xjanexOP17mo ago
Hi, I want to know how to make the command to remove a role from members
Syjalo
Syjalo17mo ago
Try to convert your sentence into the code member.roles.remove()
d.js docs
d.js docs17mo ago
method GuildMemberRoleManager#remove() Removes a role (or multiple roles) from the member.
xjanex
xjanexOP17mo ago
do i put the role id between the () ?
Syjalo
Syjalo17mo ago
Here's the doc
xjanex
xjanexOP17mo 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/luna17mo ago
Just read the doc, it shows you how
Want results from more Discord servers?
Add your server