SHARE
TWEET

Untitled

a guest Aug 23rd, 2019 72 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. const Discord = module.require("discord.js");
  2. var moment = require('moment');
  3.  
  4. module.exports.run = async (bot, message, args) => {
  5. let rUser = message.guild.member(message.mentions.users.first() || message.guild.members.get(args[0]));
  6. if (!rUser) return  message.channel.send("Nie znaleziono usera");
  7.  
  8. let rReason = args.join(" ").slice(22);
  9.  
  10. let msg = await message.channel.send("Wysyłam raport");
  11.  
  12. let reportEmbed = new Discord.RichEmbed()
  13. .setDescription("📣 Raport użytkownika")
  14. .setColor("#15f153")
  15. .addField("Kto otrzymał", `${rUser}`, true)
  16. .addField("Reportujący", `${message.author}`, true)
  17. .addBlankField(false)
  18. .addField("Na jakim kanale", message.channel, true)
  19. .addField("Czas zgłoszenia", moment(message.createdAt).locale('pl').format('LLL'), true)
  20. .addBlankField(false)
  21. .addField("Powód zgłoszenia", rReason, true)
  22. .addField("Ukarać zgłoszonego ?", "✅ Tak | ❎ Nie", true)
  23. ;
  24.  
  25. let reportschannel = message.guild.channels.find('id', "601858829805944842");
  26. if (!reportschannel) return message.channel.send("Nie znaleziono kanału");
  27.  
  28. await reportschannel.send(reportEmbed).then(function (message) {
  29.               message.react("✅")
  30.               message.react("❎")
  31.             });
  32.  
  33. message.delete();
  34. msg.delete();
  35. }
  36.  
  37. module.exports.help = {
  38.     name: "report"
  39. }
  40.  
  41. // !report @elka2017  bo jest pizdą xD
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top