Answers for "discord.js role commend"

0

discord.js role commend

client.on("message", message => {
    if (message.content === ("خط"))
    if (message.member.roles.has('role id here')) {
        message.channel.send('رابط الخط'); 
  };
});
Posted by: Guest on June-09-2021
0

discord.js role commend

client.on("message", message => {
    if (message.content === ("خط"))
    if (message.member.roles.find(r => r.name === "role name here")) {
        message.channel.send('رابط الخط'); 
  };
});
Posted by: Guest on June-09-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language