Advertisement
stan1712

FastNote

Apr 17th, 2019
117
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. message.delete();
  2.    
  3.     message.channel.send("**[ APPEL D'URGENCE ]**\nDEV TEST").then(msg => msg.react("👌"));
  4.  
  5.     const filter = (reaction, user) => {
  6.         return reaction.emoji.name === '👌' && user.id === message.author.id;
  7.     };
  8.  
  9.     const collector = test.createReactionCollector(filter, {
  10.         time: 10000
  11.     });
  12.  
  13.     collector.on('collect', (reaction, reactionCollector) => {
  14.         console.log(`Collected ${reaction.emoji.name}`);
  15.     });
  16.  
  17.     collector.on('end', collected => {
  18.         console.log(`Collected ${collected.size} items`);
  19.         message.delete();
  20.     });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement