This commit is contained in:
Daniel Odendahl Jr
2017-09-27 16:49:37 +00:00
parent 9f1b9688ae
commit 8a70e44902
16 changed files with 88 additions and 18 deletions
+3 -1
View File
@@ -36,8 +36,10 @@ module.exports = class ThesaurusCommand extends Command {
const synonyms = body.find(i => i.relationshipType === 'synonym');
const antonyms = body.find(i => i.relationshipType === 'antonym');
const embed = new MessageEmbed()
.setColor(0x9797FF)
.setAuthor('Wordnik', 'https://i.imgur.com/VcLZLXn.jpg')
.setColor(0xFE6F11)
.setTitle(query)
.setURL(`http://wordnik.com/words/${query}#relate`)
.addField(' Synonyms',
synonyms ? synonyms.words.join(', ') : 'N/A')
.addField(' Antonyms',