if (message.mentions.members.first().id code example
Example: discord.js get first mention
let member = msg.members.mentions.first();
if(msg.content === 'name'){
msg.channel.send(member)
}
let member = msg.members.mentions.first();
if(msg.content === 'name'){
msg.channel.send(member)
}