diff --git a/commands/search/anime.js b/commands/search/anime.js index 038c5f60..4804fe5c 100644 --- a/commands/search/anime.js +++ b/commands/search/anime.js @@ -80,7 +80,7 @@ module.exports = class AnimeCommand extends Command { async run(msg, { query }) { try { - const id = await this.search(query, msg.channel.nsfw); + const id = await this.search(query); if (!id) return msg.say('Could not find any results.'); const anime = await this.fetchAnime(id); const embed = new MessageEmbed() @@ -100,7 +100,7 @@ module.exports = class AnimeCommand extends Command { } } - async search(query, nsfw) { + async search(query) { const { body } = await request .post('https://graphql.anilist.co/') .send({ diff --git a/commands/search/manga.js b/commands/search/manga.js index 1ba82051..4553dbeb 100644 --- a/commands/search/manga.js +++ b/commands/search/manga.js @@ -65,7 +65,7 @@ module.exports = class MangaCommand extends Command { async run(msg, { query }) { try { - const id = await this.search(query, msg.channel.nsfw); + const id = await this.search(query); if (!id) return msg.say('Could not find any results.'); const manga = await this.fetchAnime(id); const embed = new MessageEmbed() @@ -85,7 +85,7 @@ module.exports = class MangaCommand extends Command { } } - async search(query, nsfw) { + async search(query) { const { body } = await request .post('https://graphql.anilist.co/') .send({