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))