Answers for "take from your discord bot dms discord js"

0

take from your discord bot dms discord js

let channelID = "X";
let guildID = "X";
client.on('message', (message) => {
  if(message.channel.type === 'dm'){
    let embed = new Discord.RichEmbed()
    .setAuthor(client.guilds.get(guildID).members.get(message.author.id).displayName, message.author.displayAvatarURL)
    .setColor('#FAA')
    .setDescription(message.content);
    client.channels.get(channelID).send(embed);
  }
});
Posted by: Guest on June-04-2021

Code answers related to "take from your discord bot dms discord js"

Code answers related to "Javascript"

Browse Popular Code Answers by Language