mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-27 06:37:32 +02:00
Fix
This commit is contained in:
@@ -68,7 +68,10 @@ module.exports = class WikiaCommand extends Command {
|
|||||||
async fetchArticle(wiki, id) {
|
async fetchArticle(wiki, id) {
|
||||||
const { body } = await request
|
const { body } = await request
|
||||||
.get(`https://${wiki}.fandom.com/api/v1/Articles/Details`)
|
.get(`https://${wiki}.fandom.com/api/v1/Articles/Details`)
|
||||||
.query({ ids: id });
|
.query({
|
||||||
|
ids: id,
|
||||||
|
abstract: 500
|
||||||
|
});
|
||||||
return body.items[id.toString()];
|
return body.items[id.toString()];
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user