From f01c511093000fbb081df70b819946f5513c2aca Mon Sep 17 00:00:00 2001 From: Dragon Fire Date: Thu, 14 Nov 2024 17:02:24 -0500 Subject: [PATCH] Fix --- commands/search/anilist.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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' }] }); }