diff --git a/commands/search/anilist.js b/commands/search/anilist.js index be8c772c..62f674ac 100644 --- a/commands/search/anilist.js +++ b/commands/search/anilist.js @@ -41,8 +41,11 @@ module.exports = class AnilistCommand extends Command { async run(msg, { query }) { const data = await this.search(query); if (!data || !data.id || !data.name) return msg.say('Could not find any results.'); + const { body } = await request + .get(`https://img.anili.st/user/${data.id}`) + .set({ Referer: 'nick is dum dum' }); return msg.say(``, { - files: [{ attachment: `https://img.anili.st/user/${data.id}`, name: 'anilist.png' }] + files: [{ attachment: body, name: 'anilist.png' }] }); }