From e22e01b1664cf6a7e1199d436e875baeb5388f2d Mon Sep 17 00:00:00 2001 From: Daniel Odendahl Jr Date: Tue, 26 Sep 2017 19:23:53 +0000 Subject: [PATCH] Beep --- commands/search/thesaurus.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/commands/search/thesaurus.js b/commands/search/thesaurus.js index 42619869..69f81e10 100644 --- a/commands/search/thesaurus.js +++ b/commands/search/thesaurus.js @@ -28,7 +28,7 @@ module.exports = class ThesaurusCommand extends Command { const { body } = await snekfetch .get(`http://api.wordnik.com/v4/word.json/${query}/relatedWords`) .query({ - relationshipTypes: ['synonym', 'antonym'], + relationshipTypes: 'synonym,antonym', limitPerRelationshipType: 5, api_key: WORDNIK_KEY }); @@ -38,9 +38,9 @@ module.exports = class ThesaurusCommand extends Command { const embed = new MessageEmbed() .setColor(0x9797FF) .setTitle(query) - .addField('> Synonyms', + .addField('❯ Synonyms', synonyms ? synonyms.words.join(', ') : 'N/A') - .addField('> Antonyms', + .addField('❯ Antonyms', antonyms ? antonyms.words.join(', ') : 'N/A'); return msg.embed(embed); } catch (err) {