check if message mentions users discord js

JavaScript
// 1st Way
if (message.mentions.members.size) { // or message.mentions.members.size > 0
  //DO STUFF
}

// 2nd Way
if (message.mentions.members.first()) {
  //DO STUFF
}
Source

Also in JavaScript: