showing results for - "take from your discord bot dms discord js"
Emma
21 Jun 2018
1let channelID = "X";
2let guildID = "X";
3client.on('message', (message) => {
4  if(message.channel.type === 'dm'){
5    let embed = new Discord.RichEmbed()
6    .setAuthor(client.guilds.get(guildID).members.get(message.author.id).displayName, message.author.displayAvatarURL)
7    .setColor('#FAA')
8    .setDescription(message.content);
9    client.channels.get(channelID).send(embed);
10  }
11});
12