This commit is contained in:
Daniel Odendahl Jr
2019-05-16 14:36:40 +00:00
parent 10ee2aa774
commit 3bc076319c
2 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -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({
+2 -2
View File
@@ -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({