Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const Discord = require('discord.js');
- const client = new Discord.Client();
- exports.run = (client, msg, args, configuracoes= []) => {
- if (!msg.member.hasPermission("MANAGE_MESSAGES")) return;
- const assunto = args.join(' ');
- if(!assunto) return msg.channel.send(`:warning: **|** Você precisa escrever um texto assunto para criar uma enquete., ${msg.author}.`);
- const eEnquete = new Discord.RichEmbed()
- .setTitle('🤩 | Enquete')
- .setDescription(assunto)
- .setColor(configuracoes.cor)
- .setFooter(msg.author.tag, msg.author.avatarURL)
- msg.delete();
- msg.channel.send({embed: eEnquete}).then(async r=>{
- await r.react('👍');
- await r.react('👎');
- });
- };
- exports.conf = {
- aliases: ['pesquisa'],
- };
- exports.ajuda = {
- nome : "enquete",
- desc : "Crie uma enquete"
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement