Change in the way Requests work

This commit is contained in:
Daniel Odendahl Jr
2017-04-03 20:38:18 +00:00
parent 0d05032bb3
commit 06e1cd9c50
18 changed files with 213 additions and 118 deletions
+3 -2
View File
@@ -41,10 +41,11 @@ module.exports = class DefineCommand extends commando.Command {
includeTags: false,
api_key: config.wordnikkey
});
let data = response.body[0];
const embed = new Discord.RichEmbed()
.setColor(0x9797FF)
.setTitle(response.body[0].word)
.setDescription(response.body[0].text);
.setTitle(data.word)
.setDescription(data.text);
return message.embed(embed);
}
catch (err) {