From deee1bf0c43aadd5ce6c17cc7ff7796e9f306e5d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20Gro=C3=9F?= Date: Wed, 21 Sep 2022 12:29:12 +0200 Subject: [PATCH] Collection: Fix empty collection message not showing up Fixes #4 --- commands/collection.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/commands/collection.js b/commands/collection.js index d9f5fd3..78388e6 100644 --- a/commands/collection.js +++ b/commands/collection.js @@ -125,9 +125,11 @@ module.exports = { .setFooter({ text: `Cards ${pageStart} - ${pageEnd} / ${cards.count}` }); //if the user has no cards, tell him - //BUGBUG: no longer working with the new embed flow if (cards.count === 0) { embed.setTitle("You have no cards in your collection"); + embed.setDescription("Go and drop some with /drop"); + embed.setFooter(null); + await i.edit({ embeds: [embed], components: [] }); return; }