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

Hello!
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
https://discord.js.org/#/docs/main/stable/class/Gu...
https://github.com/discordjs/discord.js/blob/stabl...

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

let embed = new shell.RichEmbed()
 // ... all the other stuff ...
 .addField('Roles:', member.roles.map(r => `${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