Collection: Fix empty collection message not showing up

Fixes #4
This commit is contained in:
2022-09-21 12:29:12 +02:00
parent 73fb84c33d
commit deee1bf0c4

View File

@@ -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;
}