From bcf872fa180c557e326b267a46b888bca3946c21 Mon Sep 17 00:00:00 2001 From: Daniel Odendahl Jr Date: Wed, 20 Dec 2017 19:40:54 +0000 Subject: [PATCH] Beep --- commands/search/yu-gi-oh.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commands/search/yu-gi-oh.js b/commands/search/yu-gi-oh.js index 5573dd6d..a8f0b860 100644 --- a/commands/search/yu-gi-oh.js +++ b/commands/search/yu-gi-oh.js @@ -30,7 +30,7 @@ module.exports = class YuGiOhCommand extends Command { 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' }]) + .attachFiles([{ attachment: image.body, name: 'thumbnail.jpg' }]) .setColor(0xBE5F1F) .setTitle(data.name) .setDescription(shorten(data.text))