client.on('messageCreate', async message => {
if (message.channel.type == '1')
{
if (message.author.id != <BOT ID> && message.author.id != <MY ID>)
{
client.users.send(message.author.id, '**ERROR:** This bot is not programmed to receive Direct Messages.');
await client.guilds.cache.get("SERVER ID").channels.cache.get("CHANNEL ID").send('Received a Direct Message\n\n**MESSAGE CONTENT:** ' + message.content + '\n**SENT BY:** ' + message.author.username + '\n**USER ID:** ' + message.author.id) // Make a note of the message content, JIC.
}
}
})
client.on('messageCreate', async message => {
if (message.channel.type == '1')
{
if (message.author.id != <BOT ID> && message.author.id != <MY ID>)
{
client.users.send(message.author.id, '**ERROR:** This bot is not programmed to receive Direct Messages.');
await client.guilds.cache.get("SERVER ID").channels.cache.get("CHANNEL ID").send('Received a Direct Message\n\n**MESSAGE CONTENT:** ' + message.content + '\n**SENT BY:** ' + message.author.username + '\n**USER ID:** ' + message.author.id) // Make a note of the message content, JIC.
}
}
})