From 4f8330886b94229187ef9e241bf0a9f3e74802c8 Mon Sep 17 00:00:00 2001 From: Dragon Fire Date: Thu, 18 Mar 2021 17:00:53 -0400 Subject: [PATCH] Fix lint --- structures/cards-against-humanity/Player.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/structures/cards-against-humanity/Player.js b/structures/cards-against-humanity/Player.js index f16fe283..d8598f78 100644 --- a/structures/cards-against-humanity/Player.js +++ b/structures/cards-against-humanity/Player.js @@ -66,7 +66,7 @@ module.exports = class Player { collector.on('collect', async msg => { const existing = hand[Number.parseInt(msg.content, 10) - 1]; if (msg.content.toLowerCase() === 'swap') { - await reactIfAble(res, res.author, SUCCESS_EMOJI_ID, '✅'); + await reactIfAble(msg, msg.author, SUCCESS_EMOJI_ID, '✅'); for (const card of this.hand) this.hand.delete(card); this.dealHand(); hand = Array.from(this.hand); @@ -75,12 +75,12 @@ module.exports = class Player { await this.sendHand(hand, black); return; } else if (msg.content.toLowerCase() === 'gamble') { - await reactIfAble(res, res.author, SUCCESS_EMOJI_ID, '✅'); + await reactIfAble(msg, msg.author, SUCCESS_EMOJI_ID, '✅'); this.points--; gambled = true; return; } else if (existing) { - await reactIfAble(res, res.author, SUCCESS_EMOJI_ID, '✅'); + await reactIfAble(msg, msg.author, SUCCESS_EMOJI_ID, '✅'); chosen.push(existing); } if (chosen.length >= black.pick * (gambled ? 2 : 1)) collector.stop();