SHARE
TWEET

Untitled

a guest Jan 19th, 2019 65 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.     if(command === "sorteo") {
  2.       if(!message.member.hasPermission("KICK_MEMBERS")) return message.reply("Lo siento, tu no tienes acceso a ese comando❗");
  3.       let rUser = message.mentions.members.first() || message.guild.members.get(args[0]) || message.member;
  4.       if(!rUser) return message.channel.send("No pude encontrar al usuario.")
  5.       let reason = args.join(" ").slice(22)
  6.        const embed = new Discord.RichEmbed()
  7.       .setTitle ("**πŸ’–πŸŽ€πŸŽ Nuevo sorteo πŸŽπŸŽ€πŸ’–**")
  8.       .setDescription ("```⬇Lee la informacion abajo ⬇```")
  9.       .setColor(0x00AE86)
  10.       .addField("```Informacion:```", reason)
  11.       .addField("```Organizador del sorteo:```", `${message.author}`)
  12.       .setImage("attachment://RAINBOW.gif")
  13.       .attachFile("path/to/RAINBOW.gif")
  14.    
  15.       let reportschannel = message.guild.channels.find (`name`, "giveaway")
  16.       if (!reportschannel) return message.channel.send ("No pude encontrar canal de reportes")
  17.    
  18.       message.delete().catch(O_o=>{})
  19.       reportschannel.send(embed);
  20.       client.channels.get('CHANNEL ID').send('Hello here!')
  21.    
  22.    
  23.       return;
  24.     } else
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