.values()

This commit is contained in:
Daniel Odendahl Jr
2017-11-06 22:44:21 +00:00
parent 86ed3a20a4
commit 0eb31cde7c
+1 -1
View File
@@ -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!');