From 4b6b2e1a0638b2189f9083005e54ff45faf8ee9f Mon Sep 17 00:00:00 2001 From: Daniel Odendahl Jr Date: Sun, 24 Sep 2017 16:19:35 +0000 Subject: [PATCH] Bug Fix --- commands/search/ghibli.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/commands/search/ghibli.js b/commands/search/ghibli.js index aea5412c..a1299f21 100644 --- a/commands/search/ghibli.js +++ b/commands/search/ghibli.js @@ -39,17 +39,17 @@ module.exports = class GhibliCommand extends Command { .setAuthor('Studio Ghibli', 'https://i.imgur.com/P3YafQ3.jpg') .setTitle(data.name) .addField('❯ Gender', - data.gender, true) + data.gender || 'N/A', true) .addField('❯ Age', - data.age, true) + data.age || 'N/A', true) .addField('❯ Species', - species.body.name, true) + species.body.name || 'N/A', true) .addField('❯ Eye Color', - data.eye_color, true) + data.eye_color || 'N/A', true) .addField('❯ Hair Color', - data.hair_color, true) + data.hair_color || 'N/A', true) .addField('❯ Films', - films.map(film => film.title).join('\n'), true); + films.map(film => film.title).join('\n') || 'N/A', true); return msg.embed(embed); } catch (err) { return msg.say(`Oh no, an error occurred: \`${err.message}\`. Try again later!`);