How to check if a user has a role 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
})