How to make an invalidation command of ownerID [discord.js]

How it works is that it detects if the person has the permission MANAGE MESSAGES If it does not, then it will verify if it has an identification of "1234567890" If it does, it does not return and passes to the code. How can I do this? I have tried so much knowledge about djs but I can not.

I tried a code like

if (! message.member.hasPermission ("MANAGE_MESSAGES") ||!
["507408804145528832"].includes (message.author.id)) return
message.channel.send (noperm);

but it scans so much that somehow how?