mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-27 14:18:36 +02:00
Fix
This commit is contained in:
@@ -64,7 +64,7 @@ module.exports = class WikiaCommand extends Command {
|
|||||||
format: 'json',
|
format: 'json',
|
||||||
formatversion: 2
|
formatversion: 2
|
||||||
});
|
});
|
||||||
if (!body || body.query.pages[0].missing) return null;
|
if (!body.query || body.query.pages[0].missing) return null;
|
||||||
return body.query.pages[0].pageid;
|
return body.query.pages[0].pageid;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user