From b23d6bbfbc4babe9253d726392e1584bd8188dbe Mon Sep 17 00:00:00 2001 From: Daniel Odendahl Jr Date: Thu, 15 Nov 2018 17:39:53 +0000 Subject: [PATCH] Fix --- commands/games/mafia.js | 2 +- commands/games/wizard-convention.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/commands/games/mafia.js b/commands/games/mafia.js index 604362a6..4beaad2a 100644 --- a/commands/games/mafia.js +++ b/commands/games/mafia.js @@ -98,7 +98,7 @@ module.exports = class MafiaCommand extends Command { `); const voted = []; const filter = res => { - if (!players.exists(p => p.user.id === res.author.id)) return false; + if (!players.some(p => p.user.id === res.author.id)) return false; if (voted.includes(res.author.id)) return false; if (!playersArr[Number.parseInt(res.content, 10) - 1]) return false; voted.push(res.author.id); diff --git a/commands/games/wizard-convention.js b/commands/games/wizard-convention.js index a0efbb01..096e96ae 100644 --- a/commands/games/wizard-convention.js +++ b/commands/games/wizard-convention.js @@ -98,7 +98,7 @@ module.exports = class WizardConventionCommand extends Command { `); const voted = []; const filter = res => { - if (!players.exists(p => p.user.id === res.author.id)) return false; + if (!players.some(p => p.user.id === res.author.id)) return false; if (voted.includes(res.author.id)) return false; if (!playersArr[Number.parseInt(res.content, 10) - 1]) return false; voted.push(res.author.id);