how to check if a message is sent from a certain user in discord.js code example
Example 1: see if discord message is in dm discord.js
if(message.channel.type === 'dm'){
message.channel.send("Pog");
}
Example 2: how to check if a user sent a message in discord js
if(message.author.id === client.user.id) return;