Skip to content
← Back to Community
How To Remove All Of A User’s Roles Discord.js
Profile icon
[deleted]

Hi there. I am currently making a discord.js bot, and I need to remove all of a user’s roles, but the code I have doesn’t work for me. Any idea on how to fix it?

Code:

let user = message.mentions.users.first() user.roles.remove(user.roles)
Voters
Profile icon
ttr3899
Profile icon
venom7aries