This commit is contained in:
Daniel Odendahl Jr
2017-09-26 19:23:53 +00:00
parent 6c8ec3994e
commit e22e01b166
+3 -3
View File
@@ -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) {