1client.on("message", message => {
2 if (message.content === ("خط"))
3 if (message.member.roles.find(r => r.name === "role name here")) {
4 message.channel.send('رابط الخط');
5 };
6});
1client.on("message", message => {
2 if (message.content === ("خط"))
3 if (message.member.roles.has('role id here')) {
4 message.channel.send('رابط الخط');
5 };
6});