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