diff --git a/commands/view.js b/commands/view.js index 103341f..93f7946 100644 --- a/commands/view.js +++ b/commands/view.js @@ -54,7 +54,10 @@ module.exports = { { model: User} ] }); - + if (card === null) { + interaction.editReply({ content: "Card not found" }); + return; + } let cardImage = await Rendering.renderCard(card); //get base filename let filename = cardImage.split("/").pop();