discord.js message.channel.typ 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;