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!`); }