SHARE
TWEET

Untitled

a guest Jan 23rd, 2019 64 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. const Discord = require('discord.js');
  2. const client = new Discord.Client();
  3. exports.run = (client, msg, args, configuracoes= []) => {
  4. if (!msg.member.hasPermission("MANAGE_MESSAGES")) return;
  5. const assunto = args.join(' ');
  6. if(!assunto) return msg.channel.send(`:warning: **|** Você precisa escrever um texto assunto para criar uma enquete., ${msg.author}.`);
  7.  
  8. const eEnquete = new Discord.RichEmbed()
  9. .setTitle('🤩 | Enquete')
  10. .setDescription(assunto)
  11. .setColor(configuracoes.cor)
  12. .setFooter(msg.author.tag, msg.author.avatarURL)
  13. msg.delete();
  14. msg.channel.send({embed: eEnquete}).then(async r=>{
  15.     await r.react('👍');
  16.     await r.react('👎');
  17. });
  18.  
  19. };
  20.  
  21. exports.conf = {
  22.   aliases: ['pesquisa'],
  23. };
  24.  
  25. exports.ajuda = {
  26.   nome : "enquete",
  27.   desc : "Crie uma enquete"
  28. };
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