From d91ee8c55797c6e7919cbbe40f1d911b3e515d26 Mon Sep 17 00:00:00 2001 From: Daniel Odendahl Jr Date: Thu, 15 Nov 2018 17:25:27 +0000 Subject: [PATCH] Fix filterArray --- commands/games/mafia.js | 2 +- commands/games/wizard-convention.js | 2 +- package.json | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/commands/games/mafia.js b/commands/games/mafia.js index eaee9235..604362a6 100644 --- a/commands/games/mafia.js +++ b/commands/games/mafia.js @@ -37,7 +37,7 @@ module.exports = class MafiaCommand extends Command { for (const player of players.values()) { if (player.role.includes('pleb')) continue; await msg.say(`The ${player.role} is making their decision...`); - const valid = players.filterArray(p => p.role !== player.role); + const valid = Array.from(players.filter(p => p.role !== player.role).values()); await player.user.send(stripIndents` ${questions[player.role]} Please type the number. ${valid.map((p, i) => `**${i + 1}.** ${p.user.tag}`).join('\n')} diff --git a/commands/games/wizard-convention.js b/commands/games/wizard-convention.js index e34dff1d..a0efbb01 100644 --- a/commands/games/wizard-convention.js +++ b/commands/games/wizard-convention.js @@ -37,7 +37,7 @@ module.exports = class WizardConventionCommand extends Command { for (const player of players.values()) { if (player.role.includes('pleb')) continue; await msg.say(`The ${player.role} is making their decision...`); - const valid = players.filterArray(p => p.role !== player.role); + const valid = Array.from(players.filter(p => p.role !== player.role).values()); await player.user.send(stripIndents` ${questions[player.role]} Please type the number. ${valid.map((p, i) => `**${i + 1}.** ${p.user.tag}`).join('\n')} diff --git a/package.json b/package.json index 905eb55b..ee7f999a 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "xiao", - "version": "98.1.1", + "version": "98.1.2", "description": "Your personal server companion.", "main": "Xiao.js", "scripts": {