📜  dm 带有消息的所有角色 - 任何代码示例

📅  最后修改于: 2022-03-11 14:55:28.700000             🧑  作者: Mango

代码示例1
var staffID = "503409681876779032";

message.guild.members.forEach( (member) => {
        if(member.roles.has(staffID)) {
            member.send(`This is a test for our report command. DM the bot dev if you are not staff.`); 
        }
    })