The code that I provided below still mutes the mentioned user even though he/she has the ADMINISTRATOR permission. Also, how can I check if the moderator is trying to mute the server's owner.
const mutee = message.mentions.members.first() || message.guild.members.cache.get(args[0])
if(mutee.member.hasPermission("ADMINISTRATOR")) return message.channel.send("Cannot mute this user.");