Answers for "remove role discord.js"

0

remove role discord.js

remove role discord.js

const Role = message.guild.roles.cache.get("RoleID");
Role.members.forEach((member, i) => { // Looping through the members of Role.
    setTimeout(() => {
        member.roles.remove(Role); // Removing the Role.
    }, i * 1000);
});
Posted by: Guest on July-09-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language