I am writing a bot to verify roles on a discord server and I came across one snag when I write more than one variable to guildMember.roles.cache.has(). The bot does not check all of them, it is possible to do something for bot to check multiple roles with operators? Thank you
if (command === 'verify' && mcname !=null && message.channel.type == "dm") {
//IF COMMAND IS VERIFY,MCNAME NOT EMPTY AND CHANNEL IS DM
const guild = await message.client.guilds.fetch(serverid);
const guildMember = await guild.members.fetch(message.author.id);
if (guildMember.roles.cache.has(roleID1 || roleID2 || roleID3 || roleID4 || roleID5 || roleID6 || roleID7)) {
I have defined role ids upper.