All Avatar Edit Commands have been async-ified

This commit is contained in:
Daniel Odendahl Jr
2017-03-23 22:07:48 +00:00
parent aa1413d571
commit c2f06d25b1
5 changed files with 38 additions and 43 deletions
+1 -1
View File
@@ -29,7 +29,7 @@ module.exports = class QuizCommand extends commando.Command {
});
const embed = new Discord.RichEmbed()
.setTitle('You have **fifteen** seconds to answer this question:')
.setDescription(`**Category: ${response.body[0].category}**\n${response.body[0].question}`);
.setDescription(`**Category: ${response.body[0].category.title}**\n${response.body[0].question}`);
let embededMessage = await message.channel.sendEmbed(embed);
try {
let collected = await message.channel.awaitMessages(res => res.content.toLowerCase() === response.body[0].answer.toLowerCase() && res.author.id === message.author.id, {