Get All Users with a Role then If it doesnt match a certain custom status ex. .gg/, it removes it

title ^
3 Replies
d.js toolkit
d.js toolkit10mo ago
- What's your exact discord.js npm list discord.js and node node -v version? - Not a discord.js issue? Check out #other-js-ts. - Consider reading #how-to-get-help to improve your question! - Explain what exactly your issue is. - Post the full error stack trace, not just the top part! - Show your code! - Issue solved? Press the button!
duck
duck10mo ago
since there isn't really a means of batch removing a role from X members, this sounds like it could be potentially spammy despite the fact that this feature sounds incredibly pointless, you should at least consider handling it on presenceUpdate rather than all at once beyond that <GuildMember>.presence.activities is an array of a member's activities custom statuses are activities of type ActivityType.Custom and you can remove a role with <GuildMember>.roles.remove()
d.js docs
d.js docs10mo ago
property Presence#activities The activities of this method GuildMemberRoleManager#remove() Removes a role (or multiple roles) from the member.