How to check if a member has a role discord.js

JavaScript
if (message.member.roles.find(r => r.name === "ROLE_NAME")) {
        //Rest of your code
    }
Source

Also in JavaScript: