How to make the bot recognize the role of the participant?

Could you suggest a method in the API to the bot recognize the role of polzovatelya?
Thanks in advance!
April 3rd 20 at 17:45
1 answer
April 3rd 20 at 17:47

let member = message.mentions.members.first() || message.member,
 user = member.user;

let embed = new shell.RichEmbed()
 // ... all the other stuff ...
 .addField('Roles:', => `${r}`).join(' | '), true)
@cyril.Jacowhen I enter !role, the bot does not output anything but errors with no - Tobin_Hamill51 commented on April 3rd 20 at 17:50

Find more questions by tags APINode.jsDiscord