How to check if a user has a role discord.js v12 code example
Example: check member role discordjs 12
if (message.member.roles.find(r => r.name === "ROLE_NAME")) {
//Rest of your code
}
if (message.member.roles.find(r => r.name === "ROLE_NAME")) {
//Rest of your code
}