Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const Discord = require('discord.js');
- module.exports.run = (client, message, args) => {
- const helpinicial = new Discord.RichEmbed()
- .setTitle("Ajuda")
- .setDescription("🎵 **|** Comandos de música!\n🎮 **|** Comandos de diversão!\n🔧 **|** Comandos de moderação!\n🔙 **|** Mostra essa pagina")
- .setFooter(`Comando enviado por ${message.author.username}`, message.author.displayAvatarURL)
- .setTimestamp();
- const helpdiversao = new Discord.RichEmbed()
- .setTitle("Ajuda - Diversão")
- .setDescription("**b!shippar |** Cria um ship entre dois usuários, será que dá certo?\n**b!texto |** Cria um texto usando uma foto de um usuario")
- .setFooter(`Comando enviado por ${message.author.username}`, message.author.displayAvatarURL)
- .setTimestamp();
- const musica = new Discord.RichEmbed()
- .setTitle("Ajuda - Música")
- .setDescription("**b!tocar (link) |** Toca uma musica a partir de um link")
- .setFooter(`Comando enviado por ${message.author.username}`, message.author.displayAvatarURL)
- .setTimestamp();
- message.author.send(helpinicial).then(async msg => {
- await msg.react("🎵")
- await msg.react("🎮")
- await msg.react("🔧")
- await msg.react("🔙")
- const collector = msg.createReactionCollector((r, u) => (r.emoji.name === '🎣', '🔙', '🕵', '🎵') && (u.id !== client.user.id && u.id === message.author.id))
- collector.on("collect", r=> {
- switch(r.emoji.name) {
- case '🎮':
- msg.edit(helpdiversao)
- break;
- case '🎵':
- msg.edit(musica)
- break;
- case '🔙':
- msg.edit(helpinicial)
- break;
- }
- })
- })
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement