diff --git a/commands/search/magic.js b/commands/search/magic.js index 542da460..d4d97175 100644 --- a/commands/search/magic.js +++ b/commands/search/magic.js @@ -75,6 +75,7 @@ module.exports = class MagicCommand extends Command { const { body } = await request .get('https://api.scryfall.com/cards/search') .query({ q: `${query}${isFunny ? ' is:funny' : ''}` }); + if (body.status === 404) return null; return body.data[0]; } catch (err) { if (err.status === 404) return null;