What is the "remove role from member" code

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