verify role of member discord.js v12 code example
Example: if member has role discord.js
let allowedRole = message.guild.roles.find("name", "rolename");
if (message.member.roles.has(allowedRole.id) {
// allowed access to command
} else {
// not allowed access
})