Fix filterArray

This commit is contained in:
Daniel Odendahl Jr
2018-11-15 17:25:27 +00:00
parent c1c5cd8452
commit d91ee8c557
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -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')}
+1 -1
View File
@@ -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')}
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "xiao",
"version": "98.1.1",
"version": "98.1.2",
"description": "Your personal server companion.",
"main": "Xiao.js",
"scripts": {