From ec9d39d9ffb86031f8de029ec6136111831c31d3 Mon Sep 17 00:00:00 2001 From: Dragon Fire Date: Mon, 29 Jun 2020 20:21:23 -0400 Subject: [PATCH] Fix --- commands/random-img/cat.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commands/random-img/cat.js b/commands/random-img/cat.js index 2a46e98d..fa53d3e5 100644 --- a/commands/random-img/cat.js +++ b/commands/random-img/cat.js @@ -31,7 +31,7 @@ module.exports = class CatCommand extends Command { mime_types: 'jpg,png' }) .set({ 'x-api-key': THECATAPI_KEY }); - return msg.say({ files: [body.images[0].url] }); + return msg.say({ files: [body[0].url] }); } catch (err) { return msg.reply(`Oh no, an error occurred: \`${err.message}\`. Try again later!`); }