This commit is contained in:
Daniel Odendahl Jr
2017-09-26 19:09:35 +00:00
parent 182553533e
commit 6c8ec3994e
+2 -2
View File
@@ -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!`);