mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-15 00:12:38 +02:00
Fix
This commit is contained in:
@@ -83,7 +83,7 @@ module.exports = class MagicCommand extends Command {
|
|||||||
const isFunny = funny.includes(query);
|
const isFunny = funny.includes(query);
|
||||||
const { body } = await request
|
const { body } = await request
|
||||||
.get('https://api.scryfall.com/cards/search')
|
.get('https://api.scryfall.com/cards/search')
|
||||||
.query({ q: `${query}${isFunny ? ' is:funny' : ''}` });
|
.query({ q: `${query} game:paper ${isFunny ? ' is:funny' : ''}` });
|
||||||
return body.data[0];
|
return body.data[0];
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
if (err.status === 404) return null;
|
if (err.status === 404) return null;
|
||||||
|
|||||||
Reference in New Issue
Block a user