mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-03 23:36:43 +02:00
await Error Again
This commit is contained in:
@@ -30,7 +30,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.category}**\n${response.body.question}`);
|
||||
await message.channel.sendEmbed(embed).then(() => {
|
||||
message.channel.sendEmbed(embed).then(() => {
|
||||
message.channel.awaitMessages(res => res.content.toLowerCase() === response.body.answer.toLowerCase() && res.author.id === message.author.id, {
|
||||
max: 1,
|
||||
time: 15000,
|
||||
|
||||
Reference in New Issue
Block a user