check user role from another server discor.dj 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
}