From 0eb31cde7ce8c4fb470f7accb0f0402293e913e9 Mon Sep 17 00:00:00 2001 From: Daniel Odendahl Jr Date: Mon, 6 Nov 2017 22:44:21 +0000 Subject: [PATCH] .values() --- commands/games/cards-against-humanity.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commands/games/cards-against-humanity.js b/commands/games/cards-against-humanity.js index 24f61293..b65d63a7 100644 --- a/commands/games/cards-against-humanity.js +++ b/commands/games/cards-against-humanity.js @@ -65,7 +65,7 @@ module.exports = class CardsAgainstHumanityCommand extends Command { Sending DMs... `); const chosenCards = new Collection(); - for (const player of players) { + for (const player of players.values()) { player.hand.add(whiteCards[Math.floor(Math.random() * whiteCards.length)]); if (player.hand.size < black.pick) { await player.user.send('You don\'t have enough cards!');