From 6c8ec3994eaabbe36eb582e87305e6ada1985745 Mon Sep 17 00:00:00 2001 From: Daniel Odendahl Jr Date: Tue, 26 Sep 2017 19:09:35 +0000 Subject: [PATCH] Bug Fix --- commands/search/thesaurus.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/commands/search/thesaurus.js b/commands/search/thesaurus.js index 9c3e53cd..42619869 100644 --- a/commands/search/thesaurus.js +++ b/commands/search/thesaurus.js @@ -39,9 +39,9 @@ module.exports = class ThesaurusCommand extends Command { .setColor(0x9797FF) .setTitle(query) .addField('> Synonyms', - synonyms.words ? synonyms.words.join(', ') : 'N/A') + synonyms ? synonyms.words.join(', ') : 'N/A') .addField('> Antonyms', - antonyms.words ? antonyms.words.join(', ') : 'N/A'); + antonyms ? antonyms.words.join(', ') : 'N/A'); return msg.embed(embed); } catch (err) { return msg.say(`Oh no, an error occurred: \`${err.message}\`. Try again later!`);