Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- message.delete();
- message.channel.send("**[ APPEL D'URGENCE ]**\nDEV TEST").then(msg => msg.react("👌"));
- const filter = (reaction, user) => {
- return reaction.emoji.name === '👌' && user.id === message.author.id;
- };
- const collector = test.createReactionCollector(filter, {
- time: 10000
- });
- collector.on('collect', (reaction, reactionCollector) => {
- console.log(`Collected ${reaction.emoji.name}`);
- });
- collector.on('end', collected => {
- console.log(`Collected ${collected.size} items`);
- message.delete();
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement