From e43ffa75c63d0301d87e3e1fc4dbcf0b0ab069b0 Mon Sep 17 00:00:00 2001 From: Abheek Dhawan Date: Sat, 3 Apr 2021 14:39:11 -0500 Subject: [PATCH] Use animated cross as well --- index.js | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/index.js b/index.js index f36fa1a..756424f 100644 --- a/index.js +++ b/index.js @@ -308,9 +308,9 @@ async function addRole(message) { message.channel.send(verificationEmbed) .then(verificationEmbed => { verificationEmbed.react(''); - verificationEmbed.react('👎'); + verificationEmbed.react(''); const filter = (reaction, user) => { - return ['anim_check', '👎'].includes(reaction.emoji.name) && message.guild.members.cache.get(user.id).hasPermission('ADMINISTRATOR') && !user.bot; + return ['anim_check', 'anim_cross'].includes(reaction.emoji.name) && message.guild.members.cache.get(user.id).hasPermission('ADMINISTRATOR') && !user.bot; }; verificationEmbed.awaitReactions(filter, { max: 1, time: 600000000, errors: ['time'] }) .then(userReaction => { @@ -360,9 +360,9 @@ async function ban(message) { message.channel.send(verificationEmbed) .then(verificationEmbed => { verificationEmbed.react(''); - verificationEmbed.react('👎'); + verificationEmbed.react(''); const filter = (reaction, user) => { - return ['anim_check', '👎'].includes(reaction.emoji.name) && message.guild.members.cache.get(user.id).hasPermission('ADMINISTRATOR') && !user.bot; + return ['anim_check', 'anim_cross'].includes(reaction.emoji.name) && message.guild.members.cache.get(user.id).hasPermission('ADMINISTRATOR') && !user.bot; }; verificationEmbed.awaitReactions(filter, { max: 1, time: 60000, errors: ['time'] }) .then(userReaction => { @@ -412,9 +412,9 @@ async function kick(message) { message.channel.send(verificationEmbed) .then( verificationEmbed => { verificationEmbed.react(''); - verificationEmbed.react('👎'); + verificationEmbed.react(''); const filter = (reaction, user) => { - return ['anim_check', '👎'].includes(reaction.emoji.name) && message.guild.members.cache.get(user.id).hasPermission('ADMINISTRATOR') && !user.bot; + return ['anim_check', 'anim_cross'].includes(reaction.emoji.name) && message.guild.members.cache.get(user.id).hasPermission('ADMINISTRATOR') && !user.bot; }; verificationEmbed.awaitReactions(filter, { max: 1, time: 60000, errors: ['time'] }) .then(userReaction => { @@ -525,9 +525,9 @@ async function roleRequest(message) { message.channel.send(verificationEmbed) .then(verificationEmbed => { verificationEmbed.react(''); - verificationEmbed.react('👎'); + verificationEmbed.react(''); const filter = (reaction, user) => { - return ['anim_check', '👎'].includes(reaction.emoji.name) && message.guild.members.cache.get(user.id).hasPermission('ADMINISTRATOR') && !user.bot; + return ['anim_check', 'anim_cross'].includes(reaction.emoji.name) && message.guild.members.cache.get(user.id).hasPermission('ADMINISTRATOR') && !user.bot; }; verificationEmbed.awaitReactions(filter, { max: 1, time: 600000000, errors: ['time'] }) .then(userReaction => {