Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const Discord = require('discord.js');
- exports.run = async (bot, message, args) => {
- let pEmbed = new Discord.RichEmbed()
- //CRIE SEU EMBED DE PÁGINA INICIAL
- message.channel.send(pEmbed).then(msg => {
- msg.react("EMOJI_UNICODE1")
- .then(() => msg.react("EMOJI_UNICODE2"))
- .then(() => msg.react("EMOJI_UNICODE3"))
- let qEmbed = new Discord.RichEmbed()
- //EMBED DA PAGINA DO PRIMEIRO EMOJI
- let filtro = (reaction, user) => reaction.emoji.name === "EMOJI_UNICODE1" && user.id === message.author.id;
- const coletor = msg.createReactionCollector(filtro, {max: 1, time: 60000});
- coletor.on("collect", () => {
- msg.edit(qEmbed)
- });
- });
- }
- exports.help = {
- name: "NOME_DO_COMANDO"
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement