how to check if a message mentions a user discordjs code example
Example 1: check if message mentions users discord js
// 1st Way
if (<Message>.mentions.members.size) { // or message.mentions.members.size > 0
//DO STUFF
}
// 2nd Way
if (<Message>.mentions.members.first()) {
//DO STUFF
}
Example 2: how to check if a user sent a message in discord js
if(message.author.id === client.user.id) return;