Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function aprovada() {
- message.channel.send({
- "embed": {
- "description": replaceCumulative("#Aprovada", "✖ **APROVADA**", aprovadas).join('\n\n'),
- "color": 0x00ff00,
- "footer": {
- "icon_url": message.author.avatarURL,
- "text": "Pedido por "+message.author.tag
- }
- }
- }).then(function (messagee) {
- messagee.react("✖");
- const filter = (reaction, user) => {
- return reaction.emoji.name === '✖' && user.id === message.author.id;
- };
- const collector = messagee.createReactionCollector(filter, { time: 15000 });
- collector.on('collect', (reaction, reactionCollector) => {
- messagee.delete();
- });
- });
- }
- function reprovada() {
- message.channel.send({
- "embed": {
- "description": replaceCumulative("#Reprovada", "✖ **REPROVADA**", aprovadas).join('\n\n'),
- "color": 0xff0000,
- "footer": {
- "icon_url": message.author.avatarURL,
- "text": "Pedido por "+message.author.tag
- }
- }
- }).then(function (messagee) {
- messagee.react("✖");
- const filter = (reaction, user) => {
- return reaction.emoji.name === '✖' && user.id === message.author.id;
- };
- const collector = messagee.createReactionCollector(filter, { time: 15000 });
- collector.on('collect', (reaction, reactionCollector) => {
- messagee.delete();
- });
- });
- }
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement