Update manga.js

This commit is contained in:
Dragon Fire
2024-11-10 13:11:10 -05:00
committed by GitHub
parent 2f9a516ed7
commit 0bb8c3499c
+3
View File
@@ -132,6 +132,7 @@ module.exports = class MangaCommand extends Command {
async search(query) {
const { body } = await request
.post('https://graphql.anilist.co/')
.set({ referer: 'nick is dum dum' })
.send({
variables: {
search: query,
@@ -146,6 +147,7 @@ module.exports = class MangaCommand extends Command {
async fetchManga(id) {
const { body } = await request
.post('https://graphql.anilist.co/')
.set({ referer: 'nick is dum dum' })
.send({
variables: {
id,
@@ -170,6 +172,7 @@ module.exports = class MangaCommand extends Command {
if (this.personalList) return this.personalList;
const { body } = await request
.post('https://graphql.anilist.co/')
.set({ referer: 'nick is dum dum' })
.send({
variables: {
name: ANILIST_USERNAME,