mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-24 10:25:11 +02:00
Change in the way Requests work
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user