check member role discordjs 12

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

Also in JavaScript: