From 825b79bd149d1036b5d048f09b4015774efe04e1 Mon Sep 17 00:00:00 2001 From: Daniel Odendahl Jr Date: Wed, 20 Dec 2017 19:39:20 +0000 Subject: [PATCH] Minor change --- commands/search/yu-gi-oh.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/commands/search/yu-gi-oh.js b/commands/search/yu-gi-oh.js index 379a7296..5573dd6d 100644 --- a/commands/search/yu-gi-oh.js +++ b/commands/search/yu-gi-oh.js @@ -27,14 +27,15 @@ module.exports = class YuGiOhCommand extends Command { try { const { body } = await snekfetch.get(`https://yugiohprices.com/api/card_data/${query}`); if (body.status === 'fail') return msg.say('Could not find any results.'); - const image = await snekfetch.get(`https://yugiohprices.com/api/card_image/${query}`, { followRedirects: false }); + const image = await snekfetch.get(`https://yugiohprices.com/api/card_image/${query}`); const { data } = body; const embed = new MessageEmbed() + .attachFiles([{ attachment: image, name: 'thumbnail.jpg' }]) .setColor(0xBE5F1F) .setTitle(data.name) .setDescription(shorten(data.text)) .setAuthor('Yu-Gi-Oh!', 'https://i.imgur.com/AJNBflD.png') - .setThumbnail(image.headers.location) + .setThumbnail('attachment://thumbnail.jpg') .addField('❯ Card Type', data.card_type, true); if (data.card_type === 'monster') {