daily pastebin goal
0%
SHARE
TWEET

Untitled

a guest Jan 17th, 2019 62 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.     if(cmd === `${prefix}report`){
  2.  
  3.         let rUser = message.guild.member(message.mentions.users.first() || message.guild.members.get(args[0]));
  4.         if(!rUser){
  5.             let notfoundEmbed = new Discord.RichEmbed()
  6.             .setDescription("Invalid arguments.")
  7.             .setColor("BLACK");
  8.  
  9.             return message.channel.send(notfoundEmbed);
  10.         }
  11.         let reason = args.join(" ").slice(22);
  12.  
  13.         if(rUser){
  14.         let reportEmbed = new Discord.RichEmbed()
  15.         .setDescription("Report coming up.")
  16.         .setColor("RED")
  17.         .addField("User Reported:", `${rUser}`)
  18.         .addField("Reported by:", message.author)
  19.         .addField("User Reported @ ID:" `${rUser.id}`)
  20.         .addField("User Reporting @ ID:", `${message.author.id}`);
  21.  
  22.         await message.channel.send(reportEmbed);
  23.         }
  24.     }
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