📌  相关文章
📜  discord.js 删除用户拥有的每个角色 - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:01:36.346000             🧑  作者: Mango

代码示例2
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);
});