From 6687c9144271b869c8d5e6c31aadcc0dba837738 Mon Sep 17 00:00:00 2001 From: Dragon Fire Date: Sun, 10 May 2020 21:07:04 -0400 Subject: [PATCH] Fix --- commands/random-res/draw-cards.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/commands/random-res/draw-cards.js b/commands/random-res/draw-cards.js index e9d66eb8..2a240ab9 100644 --- a/commands/random-res/draw-cards.js +++ b/commands/random-res/draw-cards.js @@ -31,6 +31,7 @@ module.exports = class DrawCardsCommand extends Command { run(msg, { amount, jokers }) { const deck = new Deck({ includeJokers: jokers }); const cards = deck.draw(amount); - return msg.reply(`${amount === 1 ? '' : '\n'}${Array.isArray(cards) ? cards.join('\n') : cards}`); + const display = Array.isArray(cards) ? cards.map(c => c.display).join('\n') : cards.display; + return msg.reply(`${amount === 1 ? '' : '\n'}${display}`); } };