Advertisement
Guest User

Untitled

a guest
Mar 22nd, 2019
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.72 KB | None | 0 0
  1. if (command === "movie") {
  2. const title = args.join(" ");
  3. const embed = new Discord.RichEmbed()
  4. .setFooter(`Requested by ${message.author.username} | Pending`)
  5. .addField("Movie", `${title}`);
  6.  
  7. message.channel.send(embed)
  8. .then(message.delete(500))
  9. .catch(() => console.log('error caught'));
  10.  
  11. const filter = (reaction, user) => { return reaction.emoji.name === '👍' && user.id === '945205084089942023' };
  12.  
  13. message.awaitReactions(filter).then(collected => {
  14. const reactionResponseEmbed = new Discord.RichEmbed()
  15. .setFooter(`Requested by ${message.author.username} | Filled`)
  16. .setColor("#FFFFFF")
  17. .addField("Movie", `${title}`);
  18. message.channel.send(reactionResponseEmbed);
  19. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement