mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-03 23:36:43 +02:00
Fix
This commit is contained in:
@@ -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!`);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user