Facebook
From Prisoners, 3 Years ago, written in JavaScript.
This paste is a reply to dm görme / main from cross - view diff
Embed
Download Paste or View Raw
Hits: 281
  1. client.on("message", msg => {
  2.   var dm = client.channels.get("652604373527953419"); //mesajın geleceği kanal idsi//
  3.   if (msg.channel.type === "dm") {
  4.     if (msg.author.id === client.user.id) return;
  5.     const botdm = new Discord.RichEmbed()
  6.       .setTitle(`${client.user.username} Dm`)
  7.       .setTimestamp()
  8.       .setColor("BLUE")
  9.       .setThumbnail(`${msg.author.avatarURL}`)
  10.       .addField(":boy: Gönderen ", msg.author.tag)
  11.       .addField(":id:  Gönderen ID :", msg.author.id)
  12.       .addField(":globe_with_meridians: Gönderilen Mesaj", msg.content);
  13.  
  14.     dm.send(botdm);
  15.   }
  16.   if (msg.channel.bot) return;
  17. });
  18.