How to ignore everyone and here in message.mentions.has(“”)?

client.on("message", message => { if (message.mentions.has("665761320284053538"))
...so on.

The following gets triggered when @here or #everyone are mentioned. How can I prevent it from happening?

Answer

client.on("message", message => { if (!message.mentions.has(message.mentions.EVERYONE_PATTERN) && message.mentions.has("665761320284053538"))
.
.
.

.EVERYONE_PATTERN means @everyone and @here.

There is also .ROLES_PATTERN, .USERS_PATTERN and .CHANNELS_PATTERN. They’re static RegExp type.